Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Common header and payload classes used by both ARC and WARC

  • ContentType:
  • HttpResponse:
  • IPAddressParser:
  • Payload:
  • PayloadOnClosedHandler:Parses and validates a content-type header with optional parameters.
  • IPAddressParser: Parses and validates an IPv4 or IPv6 address using regular expressions.
  • HttpResponse: Identifies and encapsulates valid http header blocks. The payload is accessible though an InputStream with optional digest value computation.
  • Payload: Encapsulates an ARC/WARC payload and optionally computes a digest value.
  • PayloadOnClosedHandler: An interface that must be implemented to receive notice of a payloads closure.

RandomAccessFile InputStream wrappers

  • RandomAccessFileInputStream: Used to access a File as an InputStream. All the RandomAccessFile methods can be used, like seek to re-position the stream.
  • RandomAccessFileOutputStream: Used to access a File as an OutputStream.