public class RawTextLineWriter extends DataWriter<byte[]>
| Modifier and Type | Class and Description |
|---|---|
static class |
RawTextLineWriter.Factory
Basic factory implementation.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_closed |
protected byte[] |
_lf
Linefeed used after entries
|
protected OutputStream |
_out |
protected static byte[] |
DEFAULT_LINEFEED |
protected static byte[] |
STD_LINEFEED_CR |
protected static byte[] |
STD_LINEFEED_CRLF |
protected static byte[] |
STD_LINEFEED_LF |
| Constructor and Description |
|---|
RawTextLineWriter(OutputStream out) |
RawTextLineWriter(OutputStream out,
byte[] linefeed) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static RawTextLineWriter.Factory |
factory()
Convenience method for instantiating factory to create instances of
this
DataWriter. |
static RawTextLineWriter.Factory |
factory(byte[] linefeed)
Convenience method for instantiating factory to create instances of
this
DataWriter. |
void |
writeEntry(byte[] item) |
protected static final byte[] STD_LINEFEED_CR
protected static final byte[] STD_LINEFEED_LF
protected static final byte[] STD_LINEFEED_CRLF
protected static final byte[] DEFAULT_LINEFEED
protected final OutputStream _out
protected final byte[] _lf
protected boolean _closed
public RawTextLineWriter(OutputStream out)
public RawTextLineWriter(OutputStream out, byte[] linefeed)
public static RawTextLineWriter.Factory factory()
DataWriter.public static RawTextLineWriter.Factory factory(byte[] linefeed)
DataWriter.public void close()
throws IOException
close in class DataWriter<byte[]>IOExceptionpublic void writeEntry(byte[] item)
throws IOException
writeEntry in class DataWriter<byte[]>IOExceptionCopyright © 2022 FasterXML. All rights reserved.