org.jwat.warc
Class WarcWriterUncompressed

java.lang.Object
  extended by org.jwat.warc.WarcWriter
      extended by org.jwat.warc.WarcWriterUncompressed

public class WarcWriterUncompressed
extends WarcWriter

WARC Writer implementation for writing uncompressed files.

Author:
nicl

Field Summary
 
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.
 byte[] writeHeader(WarcRecord record)
          Write a WARC header to the WARC output stream.
 
Methods inherited from class org.jwat.warc.WarcWriter
closeRecord_impl, exceptionOnContentLengthMismatch, init, setExceptionOnContentLengthMismatch, streamPayload, writeHeader_impl, writeHeader, writePayload, writePayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isCompressed

public boolean isCompressed()
Description copied from class: WarcWriter
Is this writer producing compressed output.

Specified by:
isCompressed in class WarcWriter
Returns:
boolean indicating whether compressed output is produced

close

public void close()
Description copied from class: WarcWriter
Close WARC writer and free its resources.

Specified by:
close in class WarcWriter

closeRecord

public void closeRecord()
                 throws IOException
Description copied from class: WarcWriter
Close the WARC record.

Specified by:
closeRecord in class WarcWriter
Throws:
IOException - if an exception occurs while closing the record

writeHeader

public byte[] writeHeader(WarcRecord record)
                   throws IOException
Description copied from class: WarcWriter
Write a WARC header to the WARC output stream.

Specified by:
writeHeader in class WarcWriter
Parameters:
record - WARC record to output
Throws:
IOException - if an exception occurs while writing header data


Copyright © 2011-2012. All Rights Reserved.