public class DefaultCPGFile extends AbstractFormatFile implements CPGFile
FILE_EXTENSION
Constructor and Description |
---|
DefaultCPGFile() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharsetName() |
java.io.File |
getFile() |
java.io.File |
getFile(java.io.File file) |
void |
read(java.io.File file) |
void |
setCharsetName(java.lang.String charsetName) |
java.lang.String |
toCharsetName(int codePage)
Gets the Java NIO charset name equivalent to the provided code page.
|
java.lang.String |
toCharsetName(java.lang.String codePageName) |
int |
toCPG(java.lang.String charsetName)
Returns the code page corresponding to the
provided charset name
|
java.lang.String |
toCPGName(java.lang.String charsetName) |
void |
write(java.io.File file) |
writeQuietly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeQuietly
public java.io.File getFile(java.io.File file)
getFile
in interface FormatFile
public java.io.File getFile()
getFile
in interface FormatFile
public java.lang.String getCharsetName()
getCharsetName
in interface CPGFile
public void setCharsetName(java.lang.String charsetName)
setCharsetName
in interface CPGFile
public java.lang.String toCharsetName(java.lang.String codePageName)
toCharsetName
in interface CPGFile
public java.lang.String toCharsetName(int codePage)
toCharsetName
in interface CPGFile
codePage
- public java.lang.String toCPGName(java.lang.String charsetName)
public int toCPG(java.lang.String charsetName)
public void read(java.io.File file) throws java.io.IOException
read
in interface FormatFile
java.io.IOException
public void write(java.io.File file) throws java.io.IOException
write
in interface FormatFile
java.io.IOException