Package org.gvsig.basicformats.impl
Class DefaultCPGFile
java.lang.Object
org.gvsig.basicformats.impl.AbstractFormatFile
org.gvsig.basicformats.impl.DefaultCPGFile
- All Implemented Interfaces:
CPGFile,FormatFile
-
Field Summary
Fields inherited from interface org.gvsig.basicformats.CPGFile
FILE_EXTENSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()voidvoidsetCharsetName(String charsetName) toCharsetName(int codePage) Gets the Java NIO charset name equivalent to the provided code page.toCharsetName(String codePageName) intReturns the code page corresponding to the provided charset namevoidMethods inherited from class org.gvsig.basicformats.impl.AbstractFormatFile
writeQuietlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.basicformats.FormatFile
writeQuietly
-
Constructor Details
-
DefaultCPGFile
public DefaultCPGFile()
-
-
Method Details
-
getFile
- Specified by:
getFilein interfaceFormatFile
-
getFile
- Specified by:
getFilein interfaceFormatFile
-
getCharsetName
- Specified by:
getCharsetNamein interfaceCPGFile
-
setCharsetName
- Specified by:
setCharsetNamein interfaceCPGFile
-
toCharsetName
- Specified by:
toCharsetNamein interfaceCPGFile
-
toCharsetName
Gets the Java NIO charset name equivalent to the provided code page. Gets null if the provided code page is not recognised as a valid code- Specified by:
toCharsetNamein interfaceCPGFile- Parameters:
codePage-- Returns:
-
toCPGName
-
toCPG
Returns the code page corresponding to the provided charset name -
read
- Specified by:
readin interfaceFormatFile- Throws:
IOException
-
write
- Specified by:
writein interfaceFormatFile- Throws:
IOException
-