|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwat.warc.WarcWriterFactory
public class WarcWriterFactory
Factory used for creating WarcWriter instances.
Factory methods are available for creating WarcWriter
instances for writing either compressed or uncompressed records.
Use of buffered methods and/or buffering speeds up the writer considerably.
| Constructor Summary | |
|---|---|
protected |
WarcWriterFactory()
Private constructor to enforce factory method. |
| Method Summary | |
|---|---|
static WarcWriter |
getWriter(OutputStream out,
boolean compressed)
Creates a new unbuffered WarcWriter from an
OutputStream. |
static WarcWriter |
getWriter(OutputStream out,
int buffer_size,
boolean compressed)
Creates a new buffered WarcWriter from an
OutputStream. |
static WarcWriter |
getWriterCompressed(OutputStream out)
Creates a new unbuffered compressing WarcWriter from an
OutputStream. |
static WarcWriter |
getWriterCompressed(OutputStream out,
int buffer_size)
Creates a new buffered compressing WarcWriter from an
OutputStream. |
static WarcWriter |
getWriterUncompressed(OutputStream out)
Creates a new unbuffered normal WarcWriter from an
OutputStream. |
static WarcWriter |
getWriterUncompressed(OutputStream out,
int buffer_size)
Creates a new buffered normal WarcWriter from an
OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected WarcWriterFactory()
| Method Detail |
|---|
public static WarcWriter getWriter(OutputStream out,
boolean compressed)
WarcWriter from an
OutputStream.
Returns a normal or compressing writer according to the arguments.
out - output stream to write tocompressed - compression switch
WarcWriter
public static WarcWriter getWriter(OutputStream out,
int buffer_size,
boolean compressed)
WarcWriter from an
OutputStream.
Returns a normal or compressing writer according to the arguments.
out - output stream to write tobuffer_size - buffer size to usecompressed - compression switch
WarcWriterpublic static WarcWriter getWriterUncompressed(OutputStream out)
WarcWriter from an
OutputStream.
out - output stream to write to
WarcWriter
public static WarcWriter getWriterUncompressed(OutputStream out,
int buffer_size)
WarcWriter from an
OutputStream.
out - output stream to write tobuffer_size - buffer size to use
WarcWriterpublic static WarcWriter getWriterCompressed(OutputStream out)
WarcWriter from an
OutputStream.
out - output stream to write to
WarcWriter
public static WarcWriter getWriterCompressed(OutputStream out,
int buffer_size)
WarcWriter from an
OutputStream.
out - output stream to write tobuffer_size - buffer size to use
WarcWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||