BeanIO 1.2.3

org.beanio.stream.fixedlength
Class FixedLengthWriterFactory

java.lang.Object
  extended by org.beanio.stream.fixedlength.FixedLengthWriterFactory
All Implemented Interfaces:
RecordWriterFactory

public class FixedLengthWriterFactory
extends Object
implements RecordWriterFactory

This record writer factory is used to create and configure a FixedLengthWriter.

Since:
1.0
Author:
Kevin Seim
See Also:
FixedLengthWriter

Constructor Summary
FixedLengthWriterFactory()
           
 
Method Summary
 RecordWriter createWriter(Writer out)
          Creates a new RecordWriter to write to an output stream.
 String getLineSeparator()
          Deprecated.  
 String getRecordTerminator()
          Returns the text used to terminate a record.
 void setLineSeparator(String lineSeparator)
          Deprecated.  
 void setRecordTerminator(String recordTerminator)
          Sets the text used to terminate a record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedLengthWriterFactory

public FixedLengthWriterFactory()
Method Detail

createWriter

public RecordWriter createWriter(Writer out)
Description copied from interface: RecordWriterFactory
Creates a new RecordWriter to write to an output stream.

Specified by:
createWriter in interface RecordWriterFactory
Parameters:
out - the output stream to write to
Returns:
the new RecordWriter

getRecordTerminator

public String getRecordTerminator()
Returns the text used to terminate a record. By default, the record terminator is set to the value of the line.separator system property.

Returns:
the record termination text

setRecordTerminator

public void setRecordTerminator(String recordTerminator)
Sets the text used to terminate a record. If set to null, the the value of the line.separator system property is used to terminate records.

Parameters:
recordTerminator - the record termination text

getLineSeparator

public String getLineSeparator()
Deprecated. 

Returns the text used to terminate a record. By default, the line separator is set to the value of the line.separator system property.

Returns:
the line separation text

setLineSeparator

public void setLineSeparator(String lineSeparator)
Deprecated. 

Sets the text used to terminate a record. If set to null, the the value of the line.separator system property is used to terminate records.

Parameters:
lineSeparator - the line separation text

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim