Statistics
| Revision:

svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.file / org.gvsig.fmap.dal.file.bsq / src / main / java / org / gvsig / fmap / dal / fileutils / CPGFile.java @ 43867

History | View | Annotate | Download (879 Bytes)

1

    
2
package org.gvsig.fmap.dal.fileutils;
3

    
4
public interface CPGFile extends AuxFile {
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
}