|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwat.warc.WarcWriter
org.jwat.warc.WarcWriterCompressed
public class WarcWriterCompressed
WARC Writer implementation for writing GZip compressed files.
| Field Summary | |
|---|---|
protected GzipEntry |
entry
Current GZip entry. |
protected GzipWriter |
writer
GZip Writer used. |
| Fields inherited from class org.jwat.warc.WarcWriter |
|---|
bExceptionOnContentLengthMismatch, diagnostics, fieldParser, header, headerContentLength, out, payloadWrittenTotal, S_HEADER_WRITTEN, S_INIT, S_PAYLOAD_WRITTEN, S_RECORD_CLOSED, state, stream_copy_buffer, warcDateFormat |
| Method Summary | |
|---|---|
void |
close()
Close WARC writer and free its resources. |
void |
closeRecord()
Close the WARC record. |
boolean |
isCompressed()
Is this writer producing compressed output. |
long |
streamPayload(InputStream in)
|
void |
writeHeader(byte[] header_bytes,
Long contentLength)
Write a raw WARC header to the WARC output stream. |
byte[] |
writeHeader(WarcRecord record)
Write a WARC header to the WARC output stream. |
long |
writePayload(byte[] b)
|
long |
writePayload(byte[] b,
int offset,
int len)
|
| Methods inherited from class org.jwat.warc.WarcWriter |
|---|
closeRecord_impl, exceptionOnContentLengthMismatch, init, setExceptionOnContentLengthMismatch, writeHeader_impl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GzipWriter writer
protected GzipEntry entry
| Method Detail |
|---|
public boolean isCompressed()
WarcWriter
isCompressed in class WarcWriterpublic void close()
WarcWriter
close in class WarcWriter
public void closeRecord()
throws IOException
WarcWriter
closeRecord in class WarcWriterIOException - if an exception occurs while closing the record
public void writeHeader(byte[] header_bytes,
Long contentLength)
throws IOException
WarcWriter
writeHeader in class WarcWriterheader_bytes - raw WARC record to output
IOException - if an exception occurs while writing header data
public byte[] writeHeader(WarcRecord record)
throws IOException
WarcWriter
writeHeader in class WarcWriterrecord - WARC record to output
IOException - if an exception occurs while writing header data
public long streamPayload(InputStream in)
throws IOException
streamPayload in class WarcWriterin - input stream containing payload data
IOException - if an exception occurs while writing payload data
public long writePayload(byte[] b)
throws IOException
writePayload in class WarcWriterIOException
public long writePayload(byte[] b,
int offset,
int len)
throws IOException
writePayload in class WarcWriterIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||