public class FixedCharsetProvider extends Object implements CharsetProvider
Constructor and Description |
---|
FixedCharsetProvider()
Initialize the provider with the default charset (UTF-8)
|
FixedCharsetProvider(Charset charset)
Initialize the provider with the given charset.
|
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset() |
Charset |
getCharset(String str)
Provide the charset for the input string.
|
void |
setCharset(Charset charset) |
public FixedCharsetProvider()
public FixedCharsetProvider(Charset charset)
charset
- the charset to usepublic Charset getCharset(String str)
CharsetProvider
getCharset
in interface CharsetProvider
str
- the string to analyzepublic Charset getCharset()
public void setCharset(Charset charset)
Copyright © 2017. All rights reserved.