public class ReportFileBuffer extends ReportBuffer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FILE_BUFFER_SIZE
domyślna nazwa pliku tymczasowego (prefix)
|
static java.lang.String |
DEFAULT_FILE_NAME
domyślna nazwa pliku tymczasowego (prefix)
|
protected java.io.BufferedOutputStream |
outBuffer
bufor trzymający treść raportu
|
protected java.io.File |
outFile
plik z raportem
|
compressedContentColumn, compressedEntryName, compressedSizeColumn, connector, contentColumn, DEFAULT_CHARSET_ENCODING, DEFAULT_COMPRESSED_BUFFER_SIZE, reportId, sizeColumn, tableName
Constructor and Description |
---|
ReportFileBuffer()
Konstruktor domyślny
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getTempFileName()
Zwraca nazwę pliku tymczasowego
|
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,
java.io.File srcFile)
Zapisuje podaną tablicę bajtów do bloba
|
append, append, append, close, getContentSize, open, save, saveCompressed
public static java.lang.String DEFAULT_FILE_NAME
public static int DEFAULT_FILE_BUFFER_SIZE
protected java.io.BufferedOutputStream outBuffer
protected java.io.File outFile
protected java.lang.String getTempFileName()
public boolean internalOpen() throws java.io.IOException
internalOpen
in class ReportBuffer
java.io.IOException
protected void internalAppend(byte[] content) throws java.io.IOException
internalAppend
in class ReportBuffer
content
- ciąg dołączny do treści raportu w buforzejava.io.IOException
protected void writeContent(java.lang.String contentCol, java.lang.String sizeCol, java.io.File srcFile) throws PalioException, java.io.IOException
contentCol
- nazwa kolumny z blobemsizeCol
- nazwa kolumny z rozmiaremsrcFile
- plik wciągany do bazy danychPalioException
java.io.IOException
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, java.io.IOException
internalClose
in class ReportBuffer
PalioException
java.io.IOException