ix.util.xml
Class FileSyntax.XMLFiles
java.lang.Object
ix.util.xml.AbstractFileSyntax
ix.util.xml.FileSyntax.XMLFiles
- All Implemented Interfaces:
- FileSyntax, Loader, Saver
- Enclosing interface:
- FileSyntax
public static class FileSyntax.XMLFiles
- extends AbstractFileSyntax
XML file syntax
Method Summary |
boolean |
canRead()
Is reading supported? |
boolean |
canWrite()
Is writing supported? |
java.lang.String |
getFileTypeDescription()
Returns a short description of the type of files
understood by this FileSyntax. |
java.util.List |
getFileTypes()
Returns a set of strings representing file types / extensions. |
java.lang.Object |
readObject(java.net.URL url)
|
void |
writeObject(java.lang.Object obj,
java.io.File file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileSyntax.XMLFiles
public FileSyntax.XMLFiles()
getFileTypes
public java.util.List getFileTypes()
- Description copied from interface:
FileSyntax
- Returns a set of strings representing file types / extensions.
getFileTypeDescription
public java.lang.String getFileTypeDescription()
- Description copied from interface:
FileSyntax
- Returns a short description of the type of files
understood by this FileSyntax. The result should be
a plural phrase such as "XML files" or "domain descriptions".
canRead
public boolean canRead()
- Description copied from interface:
FileSyntax
- Is reading supported?
- Specified by:
canRead
in interface FileSyntax
- Overrides:
canRead
in class AbstractFileSyntax
canWrite
public boolean canWrite()
- Description copied from interface:
FileSyntax
- Is writing supported?
- Specified by:
canWrite
in interface FileSyntax
- Overrides:
canWrite
in class AbstractFileSyntax
readObject
public java.lang.Object readObject(java.net.URL url)
throws java.io.IOException
- Specified by:
readObject
in interface Loader
- Overrides:
readObject
in class AbstractFileSyntax
- Throws:
java.io.IOException
writeObject
public void writeObject(java.lang.Object obj,
java.io.File file)
throws java.io.IOException
- Specified by:
writeObject
in interface Saver
- Overrides:
writeObject
in class AbstractFileSyntax
- Throws:
java.io.IOException