Class HvlRToolReportExportingDataBuffer

java.lang.Object
org.springframework.core.io.buffer.DataBufferWrapper
tr.com.havelsan.javarch.report.rtool.starter.engine.buffer.HvlRToolReportExportingDataBuffer
All Implemented Interfaces:
org.springframework.core.io.buffer.DataBuffer

public final class HvlRToolReportExportingDataBuffer extends org.springframework.core.io.buffer.DataBufferWrapper
Provides a convenient implementation of the DataBuffer interface that can be overridden to adapt the delegate.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.core.io.buffer.DataBuffer

    org.springframework.core.io.buffer.DataBuffer.ByteBufferIterator
  • Method Summary

    Modifier and Type
    Method
    Description
    allocateWith(String reportName, HvlRToolReportMediaType exportingMediaType, HvlRToolReportFileNamingStrategy reportFileNamingStrategy)
    Creates report exporting data buffer.
    Exporting media type hvl r tool report media type.
    Report file naming strategy hvl r tool report file naming strategy.
    Report name string.
    org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>
    To downloadable response entity.

    Methods inherited from class org.springframework.core.io.buffer.DataBufferWrapper

    asByteBuffer, asByteBuffer, asInputStream, asInputStream, asOutputStream, capacity, capacity, dataBuffer, ensureCapacity, ensureWritable, factory, getByte, indexOf, lastIndexOf, read, read, read, readableByteBuffers, readableByteCount, readPosition, readPosition, retainedSlice, slice, split, toByteBuffer, toByteBuffer, toByteBuffer, toByteBuffer, toString, toString, writableByteBuffers, writableByteCount, write, write, write, write, write, write, writePosition, writePosition

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • allocateWith

      public static HvlRToolReportExportingDataBuffer allocateWith(String reportName, HvlRToolReportMediaType exportingMediaType, HvlRToolReportFileNamingStrategy reportFileNamingStrategy)
      Creates report exporting data buffer.
      Parameters:
      reportName - the report name
      exportingMediaType - the exporting media type
      reportFileNamingStrategy - the report file naming strategy
      Returns:
      the report exporting data buffer
    • reportName

      public String reportName()
      Report name string.
      Returns:
      the string
    • exportingMediaType

      public HvlRToolReportMediaType exportingMediaType()
      Exporting media type hvl r tool report media type.
      Returns:
      the hvl r tool report media type
    • reportFileNamingStrategy

      public HvlRToolReportFileNamingStrategy reportFileNamingStrategy()
      Report file naming strategy hvl r tool report file naming strategy.
      Returns:
      the hvl r tool report file naming strategy
    • toDownloadableResponseEntity

      public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> toDownloadableResponseEntity()
      To downloadable response entity.
      Returns:
      the response entity