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 TypeMethodDescriptionallocateWith
(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
-
Method Details
-
allocateWith
public static HvlRToolReportExportingDataBuffer allocateWith(String reportName, HvlRToolReportMediaType exportingMediaType, HvlRToolReportFileNamingStrategy reportFileNamingStrategy) Creates report exporting data buffer.- Parameters:
reportName
- the report nameexportingMediaType
- the exporting media typereportFileNamingStrategy
- the report file naming strategy- Returns:
- the report exporting data buffer
-
reportName
Report name string.- Returns:
- the string
-
exportingMediaType
Exporting media type hvl r tool report media type.- Returns:
- the hvl r tool report media type
-
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
-