java.lang.Object
de.grogra.pf.io.IOFlavor
An
IOFlavor
is similar to a
DataFlavor
: For some data to be transfered
in an IO operation, it describes both the type of data and the way how to
transfer it. The type is specified by a MimeType
,
the possible ways for transfer by a combination of those bit masks
which are defined in this class.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Bit mask indicating that the data can be obtained as a DOM tree.static final int
static final int
Bit mask indicating that the data can be obtained from aFile
.static final int
Bit mask indicating that the data can be written to aFile
.static final IOFlavor
static final IOFlavor
static final int
Bit mask indicating that the data can be obtained from anInputStream
.static final IOFlavor
static final IOFlavor
static final int
Bit mask indicating that the data can be obtained immediately as anObject
.static final int
Bit mask indicating that the data can be written to anOutputStream
.static final IOFlavor
static final int
Bit mask indicating that the data can be obtained from aReader
.static final IOFlavor
static final IOFlavor
static final IOFlavor
static final int
Bit mask indicating that the data can be obtained as a series of SAX events.static final IOFlavor
The IOFlavor typeSCI_FLAVOR
indicates greenscilab filesstatic final int
static final int
static final int
static final int
Bit mask indicating that the data can be obtained from a virtual file.static final int
Bit mask indicating that the data can be written to a virtual file.static final int
Bit mask indicating that the data can be written to aWriter
.static final IOFlavor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isWritableTo
(IOFlavor dest) boolean
isWritableTo
(MimeType dest) boolean
toString()
static IOFlavor
static IOFlavor
static IOFlavor
-
Field Details
-
INPUT_STREAM
public static final int INPUT_STREAMBit mask indicating that the data can be obtained from anInputStream
. The source which provides the data has to implementInputStreamSource
.- See Also:
-
OUTPUT_STREAM
public static final int OUTPUT_STREAMBit mask indicating that the data can be written to anOutputStream
. The source which provides the data has to implementOutputStreamSource
.- See Also:
-
READER
public static final int READERBit mask indicating that the data can be obtained from aReader
. The source which provides the data has to implementReaderSource
.- See Also:
-
WRITER
public static final int WRITERBit mask indicating that the data can be written to aWriter
. The source which provides the data has to implementWriterSource
.- See Also:
-
SAX
public static final int SAXBit mask indicating that the data can be obtained as a series of SAX events. The source which provides the data has to implementSAXSource
.- See Also:
-
FILE_READER
public static final int FILE_READERBit mask indicating that the data can be obtained from aFile
. The source which provides the data has to implementFileReaderSource
.- See Also:
-
FILE_WRITER
public static final int FILE_WRITERBit mask indicating that the data can be written to aFile
. The source which provides the data has to implementFileWriterSource
.- See Also:
-
DOM
public static final int DOMBit mask indicating that the data can be obtained as a DOM tree. The source which provides the data has to implementDOMSource
.- See Also:
-
OBJECT
public static final int OBJECTBit mask indicating that the data can be obtained immediately as anObject
. The source which provides the data has to implementObjectSource
.- See Also:
-
VFILE_READER
public static final int VFILE_READERBit mask indicating that the data can be obtained from a virtual file. The source which provides the data has to implementVirtualFileReaderSource
.- See Also:
-
VFILE_WRITER
public static final int VFILE_WRITERBit mask indicating that the data can be written to a virtual file. The source which provides the data has to implementVirtualFileWriterSource
.- See Also:
-
TRANSFER_IO_STREAM
public static final int TRANSFER_IO_STREAM- See Also:
-
TRANSFER_STREAM
public static final int TRANSFER_STREAM- See Also:
-
TRANSFER_TYPES
public static final int TRANSFER_TYPES- See Also:
-
FILE_OUT
public static final int FILE_OUT- See Also:
-
INVALID
-
FS_FLAVOR
-
XML_FLAVOR
-
SCI_FLAVOR
The IOFlavor typeSCI_FLAVOR
indicates greenscilab files -
PROJECT_LOADER
-
RESOURCE_LOADER
-
REGISTRY_LOADER
-
GRAPH_LOADER
-
REGISTRY
-
NODE
-
-
Constructor Details
-
IOFlavor
-
IOFlavor
-
-
Method Details
-
getMimeType
-
isInputStreamSupported
public boolean isInputStreamSupported() -
isOutputStreamSupported
public boolean isOutputStreamSupported() -
isReaderSupported
public boolean isReaderSupported() -
isWriterSupported
public boolean isWriterSupported() -
isSAXSupported
public boolean isSAXSupported() -
isDOMSupported
public boolean isDOMSupported() -
isFileReaderSupported
public boolean isFileReaderSupported() -
isFileWriterSupported
public boolean isFileWriterSupported() -
isObjectSupported
public boolean isObjectSupported() -
isVirtualFileReaderSupported
public boolean isVirtualFileReaderSupported() -
isVirtualFileWriterSupported
public boolean isVirtualFileWriterSupported() -
getObjectClass
-
isAssignableFrom
-
toString
-
valueOf
-
valueOf
-
valueOf
-
isWritableTo
-
isWritableTo
-
equals
-
hashCode
public int hashCode()
-