|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tridas.io.TridasIO
public class TridasIO
Used to get readers/writers from name or extension. In order to include your
writer/reader in the list,
register it with registerFileReader(Class)
and
registerFileWriter(Class)
. Also, this class
stores global properties for the library, such as charset detection when loading files.
Field Summary | |
---|---|
static TreeMap<Integer,CoordinateReferenceSystem> |
crsMap
|
Constructor Summary | |
---|---|
TridasIO()
|
Method Summary | |
---|---|
static ArrayList<DendroFileFilter> |
getFileFilterArray()
|
static AbstractDendroFileReader |
getFileReader(String argFormatName)
Get a file reader from the format name. |
static AbstractDendroFileReader |
getFileReaderFromExtension(String argExtension)
Gets the reader from the given extension. |
static AbstractDendroCollectionWriter |
getFileWriter(String argFormatName)
Get a file writer from the format name. |
static AbstractDendroCollectionWriter |
getFileWriterFromExtension(String argExtension)
Gets the writer from the given extension. |
static String |
getReadingCharset()
|
static String[] |
getSupportedReadingFormats()
Get all supported reading formats. |
static String[] |
getSupportedWritingFormats()
Get all supported writing formats |
static String |
getWritingCharset()
|
static boolean |
isCharsetDetection()
If the library detects the charset when loading files. |
static void |
registerFileReader(Class<? extends AbstractDendroFileReader> argReader)
Register a reader. |
static void |
registerFileWriter(Class<? extends AbstractDendroCollectionWriter> argWriter)
Register a writer |
static void |
setCharsetDetection(boolean argCharsetDetection)
Sets if charset detection is used when loading files. |
static void |
setReadingCharset(String argCharset)
sets the reading |
static void |
setWritingCharset(String argCharset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static TreeMap<Integer,CoordinateReferenceSystem> crsMap
Constructor Detail |
---|
public TridasIO()
Method Detail |
---|
public static void setCharsetDetection(boolean argCharsetDetection)
argCharsetDetection
- public static boolean isCharsetDetection()
public static void registerFileReader(Class<? extends AbstractDendroFileReader> argReader)
argReader
- public static void registerFileWriter(Class<? extends AbstractDendroCollectionWriter> argWriter)
argWriter
- public static AbstractDendroCollectionWriter getFileWriter(String argFormatName)
argFormatName
-
getSupportedWritingFormats()
public static AbstractDendroFileReader getFileReader(String argFormatName)
argFormatName
-
getSupportedReadingFormats()
public static ArrayList<DendroFileFilter> getFileFilterArray()
public static AbstractDendroFileReader getFileReaderFromExtension(String argExtension)
argExtension
-
public static AbstractDendroCollectionWriter getFileWriterFromExtension(String argExtension)
argExtension
-
public static String[] getSupportedReadingFormats()
public static String[] getSupportedWritingFormats()
public static void setReadingCharset(String argCharset)
argCharset
- the charset to read with
IllegalCharsetNameException
- - If the given charset name is illegal
UnsupportedCharsetException
- - If no support for the named charset is available in this instance of
the Java virtual machinepublic static String getReadingCharset()
public static void setWritingCharset(String argCharset)
argCharset
- the writingCharset to setpublic static String getWritingCharset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |