public class ReportMemoryBuffer extends ReportBuffer
Modifier and Type | Field and Description |
---|---|
protected java.io.ByteArrayOutputStream |
buffer
bufor trzymający treść raportu
|
protected byte[] |
bytesContent
przetworzony na byte[] bufor
|
static int |
DEFAULT_BUFFER_SIZE
domyślny rozmiar bufora (przy tworzeniu bufor jest inicjalizowany na taki rozmiar)
|
compressedContentColumn, compressedEntryName, compressedSizeColumn, connector, contentColumn, DEFAULT_CHARSET_ENCODING, DEFAULT_COMPRESSED_BUFFER_SIZE, reportId, sizeColumn, tableName
Constructor and Description |
---|
ReportMemoryBuffer()
Konstruktor domyślny
|
Modifier and Type | Method and Description |
---|---|
protected void |
internalAppend(byte[] content)
Dołącza podany content do treści raportu w buforze.
|
void |
internalClose()
Zamyka bufor i zwalnia pamięć.
|
boolean |
internalOpen()
Otwiera i czyści bufor raportu.
|
void |
internalSave(long contentSize)
Zapisuje treść raportu.
|
void |
internalSaveCompressed(long contentSize)
Kompresuje i zapisuje skompresowaną treść raportu.
|
protected void |
writeContent(java.lang.String contentCol,
java.lang.String sizeCol,
byte[] content,
long size)
Zapisuje podaną tablicę bajtów do bloba
|
append, append, append, close, getContentSize, open, save, saveCompressed
public static int DEFAULT_BUFFER_SIZE
protected java.io.ByteArrayOutputStream buffer
protected byte[] bytesContent
public boolean internalOpen()
internalOpen
in class ReportBuffer
protected void internalAppend(byte[] content)
internalAppend
in class ReportBuffer
content
- ciąg dołączny do treści raportu w buforzeprotected void writeContent(java.lang.String contentCol, java.lang.String sizeCol, byte[] content, long size) throws PalioException
contentCol
- nazwa kolumny z blobemsizeCol
- nazwa kolumny z rozmiaremcontent
- dane do zapisaniasize
- rozmiar do zapisaniaPalioException
public void internalSave(long contentSize) throws PalioException, java.io.IOException
internalSave
in class ReportBuffer
contentSize
- rozmiar treści raportuPalioException
java.io.IOException
public void internalSaveCompressed(long contentSize) throws PalioException, java.io.IOException
internalSaveCompressed
in class ReportBuffer
contentSize
- rozmiar treści raportuPalioException
java.io.IOException
public void internalClose() throws PalioException
internalClose
in class ReportBuffer
PalioException