- java.lang.Object
- 
- com.pervasive.datarush.operators.io.FormattingOptions
 
- 
 public class FormattingOptions extends Object A collection of parameters for configuring parsing. This includes, but is not necessarily limited to:- Tuning the sizes of internal buffers.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_WRITE_BUFFERThe default size, in bytes, for write operations
 - 
Constructor SummaryConstructors Constructor Description FormattingOptions()Creates a collection with default settings: Buffers will use default sizings.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEncodeBuffer()Gets the size of the buffer, in bytes, used to encode character data.intgetWriteBuffer()Gets the size of the I/O buffer, in bytes, to use for writes.voidset(FormattingOptions options)Copies the settings from the specified source.voidsetEncodeBuffer(int size)Sets the size of the buffer, in bytes, used to encode character data.voidsetWriteBuffer(int size)Sets the size of the I/O buffer, in bytes, to use for writes.
 
- 
- 
- 
Field Detail- 
DEFAULT_WRITE_BUFFERpublic static final int DEFAULT_WRITE_BUFFER The default size, in bytes, for write operations- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setpublic void set(FormattingOptions options) Copies the settings from the specified source. Afterwards, this properties object will have the same- Parameters:
- options- the settings to copy
 
 - 
getWriteBufferpublic int getWriteBuffer() Gets the size of the I/O buffer, in bytes, to use for writes.- Returns:
- the size of the write buffer
 
 - 
setWriteBufferpublic void setWriteBuffer(int size) Sets the size of the I/O buffer, in bytes, to use for writes. The default size is 64K.- Parameters:
- size- the size of the write buffer
 
 - 
getEncodeBufferpublic int getEncodeBuffer() Gets the size of the buffer, in bytes, used to encode character data.- Returns:
- the decoding buffer size
 
 - 
setEncodeBufferpublic void setEncodeBuffer(int size) Sets the size of the buffer, in bytes, used to encode character data. By default, this will be automatically derived using the character set and write buffer size.- Parameters:
- size- the encoding buffer size to use
 
 
- 
 
-