com.fasterxml.sort.std
Class RawTextLineWriter

java.lang.Object
  extended by com.fasterxml.sort.DataWriter<byte[]>
      extended by com.fasterxml.sort.std.RawTextLineWriter

public class RawTextLineWriter
extends DataWriter<byte[]>


Nested Class Summary
static class RawTextLineWriter.Factory
          Basic factory implementation.
 
Field Summary
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 Summary
RawTextLineWriter(OutputStream out)
           
RawTextLineWriter(OutputStream out, byte[] linefeed)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STD_LINEFEED_CR

protected static final byte[] STD_LINEFEED_CR

STD_LINEFEED_LF

protected static final byte[] STD_LINEFEED_LF

STD_LINEFEED_CRLF

protected static final byte[] STD_LINEFEED_CRLF

DEFAULT_LINEFEED

protected static final byte[] DEFAULT_LINEFEED

_out

protected final OutputStream _out

_lf

protected final byte[] _lf
Linefeed used after entries


_closed

protected boolean _closed
Constructor Detail

RawTextLineWriter

public RawTextLineWriter(OutputStream out)

RawTextLineWriter

public RawTextLineWriter(OutputStream out,
                         byte[] linefeed)
Method Detail

factory

public static RawTextLineWriter.Factory factory()
Convenience method for instantiating factory to create instances of this DataWriter.


factory

public static RawTextLineWriter.Factory factory(byte[] linefeed)
Convenience method for instantiating factory to create instances of this DataWriter.


close

public void close()
           throws IOException
Specified by:
close in class DataWriter<byte[]>
Throws:
IOException

writeEntry

public void writeEntry(byte[] item)
                throws IOException
Specified by:
writeEntry in class DataWriter<byte[]>
Throws:
IOException


Copyright © 2011. All Rights Reserved.