palio.modules.report
Class ReportMemoryBuffer

java.lang.Object
  extended by palio.modules.report.ReportBuffer
      extended by palio.modules.report.ReportMemoryBuffer

public class ReportMemoryBuffer
extends ReportBuffer

Klasa służąca do buforowania w pamięci treści raportu i zapisu do bazy.


Field Summary
static int DEFAULT_BUFFER_SIZE
          domyślny rozmiar bufora (przy tworzeniu bufor jest inicjalizowany na taki rozmiar)
 
Fields inherited from class palio.modules.report.ReportBuffer
DEFAULT_CHARSET_ENCODING
 
Constructor Summary
ReportMemoryBuffer()
          Konstruktor domyślny
 
Method Summary
 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.
 
Methods inherited from class palio.modules.report.ReportBuffer
append, append, append, close, open, save, saveCompressed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER_SIZE

public static int DEFAULT_BUFFER_SIZE
domyślny rozmiar bufora (przy tworzeniu bufor jest inicjalizowany na taki rozmiar)

Constructor Detail

ReportMemoryBuffer

public ReportMemoryBuffer()
Konstruktor domyślny

Method Detail

internalOpen

public boolean internalOpen()
Otwiera i czyści bufor raportu.

Returns:
true jeśli bufor zainicjalizowany/wyczyszczony poprawnie, false jeśli nie udało się zainicjalizować

internalSave

public void internalSave(long contentSize)
                  throws palio.PalioException,
                         java.io.IOException
Zapisuje treść raportu.

Specified by:
internalSave in class ReportBuffer
Parameters:
contentSize - rozmiar treści raportu
Throws:
palio.PalioException
java.io.IOException

internalSaveCompressed

public void internalSaveCompressed(long contentSize)
                            throws palio.PalioException,
                                   java.io.IOException
Kompresuje i zapisuje skompresowaną treść raportu.

Specified by:
internalSaveCompressed in class ReportBuffer
Parameters:
contentSize - rozmiar treści raportu
Throws:
palio.PalioException
java.io.IOException

internalClose

public void internalClose()
                   throws palio.PalioException
Zamyka bufor i zwalnia pamięć.

Specified by:
internalClose in class ReportBuffer
Throws:
palio.PalioException