public class ArcWriterFactory extends java.lang.Object
ArcWriter instances.
Factory methods are available for creating ArcWriter
instances for writing either compressed or uncompressed records.
Use of buffered methods and/or buffering speeds up the writer considerably.| Modifier | Constructor and Description |
|---|---|
protected |
ArcWriterFactory()
Private constructor to enforce factory methods.
|
| Modifier and Type | Method and Description |
|---|---|
static ArcWriter |
getWriter(java.io.OutputStream out,
boolean compressed)
Creates a new unbuffered
ArcWriter from an
OutputStream. |
static ArcWriter |
getWriter(java.io.OutputStream out,
int buffer_size,
boolean compressed)
Creates a new buffered
ArcWriter from an
OutputStream. |
static ArcWriter |
getWriterCompressed(java.io.OutputStream out)
Creates a new unbuffered compressing
ArcWriter from an
OutputStream. |
static ArcWriter |
getWriterCompressed(java.io.OutputStream out,
int buffer_size)
Creates a new buffered compressing
ArcWriter from an
OutputStream. |
static ArcWriter |
getWriterUncompressed(java.io.OutputStream out)
Creates a new unbuffered non compressing
ArcWriter from an
OutputStream. |
static ArcWriter |
getWriterUncompressed(java.io.OutputStream out,
int buffer_size)
Creates a new buffered non compressing
ArcWriter from an
OutputStream. |
protected ArcWriterFactory()
public static ArcWriter getWriter(java.io.OutputStream out, boolean compressed)
ArcWriter from an
OutputStream.
Returns a compressing or non compressing writer according to the arguments.out - output stream to write tocompressed - compression switchArcWriterpublic static ArcWriter getWriter(java.io.OutputStream out, int buffer_size, boolean compressed)
ArcWriter from an
OutputStream.
Returns a compressing or non compressing writer according to the arguments.out - output stream to write tobuffer_size - buffer size to usecompressed - compression switchArcWriterpublic static ArcWriter getWriterUncompressed(java.io.OutputStream out)
ArcWriter from an
OutputStream.out - output stream to write toArcWriterpublic static ArcWriter getWriterUncompressed(java.io.OutputStream out, int buffer_size)
ArcWriter from an
OutputStream.out - output stream to write tobuffer_size - buffer size to useArcWriterpublic static ArcWriter getWriterCompressed(java.io.OutputStream out)
ArcWriter from an
OutputStream.out - output stream to write toArcWriterpublic static ArcWriter getWriterCompressed(java.io.OutputStream out, int buffer_size)
ArcWriter from an
OutputStream.out - output stream to write tobuffer_size - buffer size to useArcWriterCopyright © 2011–2022. All rights reserved.