svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.basicformats / src / main / java / org / gvsig / basicformats / CPGFile.java @ 45722
History | View | Annotate | Download (876 Bytes)
1 |
|
---|---|
2 |
package org.gvsig.basicformats; |
3 |
|
4 |
public interface CPGFile extends FormatFile { |
5 |
|
6 |
public String FILE_EXTENSION = "cpg"; |
7 |
|
8 |
public String getCharsetName(); |
9 |
|
10 |
public void setCharsetName(String charsetName); |
11 |
|
12 |
/**
|
13 |
* Returns the code page corresponding to the
|
14 |
* provided charset name
|
15 |
*
|
16 |
* @param charsetName
|
17 |
* @return The code page, or 0x00 if no equivalent code page was found for
|
18 |
* the provided charsetName
|
19 |
*/
|
20 |
public int toCPG(String charsetName); |
21 |
|
22 |
public String toCPGName(String charsetName); |
23 |
|
24 |
public String toCharsetName(String codePageName); |
25 |
|
26 |
/**
|
27 |
* Gets the Java NIO charset name equivalent to the provided code page.
|
28 |
* Gets null if the provided code page is not recognised
|
29 |
* as a valid code
|
30 |
*
|
31 |
* @param codePage
|
32 |
* @return
|
33 |
*/
|
34 |
public String toCharsetName(int codePage); |
35 |
|
36 |
} |