public class LineConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE
The default buffer size hint in bytes.
|
static Charset |
DEFAULT_CHARSET
The default charset.
|
static CodingErrorAction |
DEFAULT_CODING_ERROR_ACTION
The default charset coding error action type.
|
Constructor and Description |
---|
LineConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize()
Returns the buffer size (hint) in bytes.
|
Charset |
getCharset()
Returns the text charset.
|
CodingErrorAction |
getMalformedInputAction()
Returns the action type for malformed inputs.
|
CodingErrorAction |
getUnmappableCharacterAction()
Returns the action type for unmappable inputs.
|
LineConfiguration |
withBufferSize(int newValue)
Sets the buffer size (hint) in bytes.
|
LineConfiguration |
withCharset(Charset newValue)
Sets the text charset.
|
LineConfiguration |
withMalformedInputAction(CodingErrorAction newValue)
Sets the action type for malformed inputs.
|
LineConfiguration |
withUnmappableCharacterAction(CodingErrorAction newValue)
Sets the action type for unmappable inputs.
|
public static final Charset DEFAULT_CHARSET
getCharset()
public static final int DEFAULT_BUFFER_SIZE
public static final CodingErrorAction DEFAULT_CODING_ERROR_ACTION
public Charset getCharset()
public LineConfiguration withCharset(Charset newValue)
newValue
- the valuepublic int getBufferSize()
public LineConfiguration withBufferSize(int newValue)
newValue
- the valuepublic CodingErrorAction getMalformedInputAction()
public LineConfiguration withMalformedInputAction(CodingErrorAction newValue)
newValue
- the valuepublic CodingErrorAction getUnmappableCharacterAction()
public LineConfiguration withUnmappableCharacterAction(CodingErrorAction newValue)
newValue
- the valueCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.