- 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 Summary
Fields Modifier and Type Field Description static intDEFAULT_WRITE_BUFFERThe default size, in bytes, for write operations
-
Constructor Summary
Constructors Constructor Description FormattingOptions()Creates a collection with default settings: Buffers will use default sizings.
-
Method Summary
All 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_BUFFER
public static final int DEFAULT_WRITE_BUFFER
The default size, in bytes, for write operations- See Also:
- Constant Field Values
-
-
Method Detail
-
set
public 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
-
getWriteBuffer
public int getWriteBuffer()
Gets the size of the I/O buffer, in bytes, to use for writes.- Returns:
- the size of the write buffer
-
setWriteBuffer
public 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
-
getEncodeBuffer
public int getEncodeBuffer()
Gets the size of the buffer, in bytes, used to encode character data.- Returns:
- the decoding buffer size
-
setEncodeBuffer
public 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
-
-