|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.pf.io.IOFlavor
public final class 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.
Field Summary | |
---|---|
static int |
DOM
Bit mask indicating that the data can be obtained as a DOM tree. |
static int |
FILE_OUT
|
static int |
FILE_READER
Bit mask indicating that the data can be obtained from a File . |
static int |
FILE_WRITER
Bit mask indicating that the data can be written to a File . |
static IOFlavor |
FS_FLAVOR
|
static IOFlavor |
GRAPH_LOADER
|
static int |
INPUT_STREAM
Bit mask indicating that the data can be obtained from an InputStream . |
static IOFlavor |
INVALID
|
static IOFlavor |
NODE
|
static int |
OBJECT
Bit mask indicating that the data can be obtained immediately as an Object . |
static int |
OUTPUT_STREAM
Bit mask indicating that the data can be written to an OutputStream . |
static IOFlavor |
PROJECT_LOADER
|
static int |
READER
Bit mask indicating that the data can be obtained from a Reader . |
static IOFlavor |
REGISTRY
|
static IOFlavor |
REGISTRY_LOADER
|
static IOFlavor |
RESOURCE_LOADER
|
static int |
SAX
Bit mask indicating that the data can be obtained as a series of SAX events. |
static IOFlavor |
SCI_FLAVOR
The IOFlavor type SCI_FLAVOR indicates greenscilab files |
static int |
TRANSFER_IO_STREAM
|
static int |
TRANSFER_STREAM
|
static int |
TRANSFER_TYPES
|
static int |
VFILE_READER
Bit mask indicating that the data can be obtained from a virtual file. |
static int |
VFILE_WRITER
Bit mask indicating that the data can be written to a virtual file. |
static int |
WRITER
Bit mask indicating that the data can be written to a Writer . |
static IOFlavor |
XML_FLAVOR
|
Constructor Summary | |
---|---|
IOFlavor(MimeType javaMimeType)
|
|
IOFlavor(MimeType mimeType,
int features,
java.lang.Class objectClass)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
MimeType |
getMimeType()
|
java.lang.Class |
getObjectClass()
|
int |
hashCode()
|
boolean |
isAssignableFrom(IOFlavor f)
|
boolean |
isDOMSupported()
|
boolean |
isFileReaderSupported()
|
boolean |
isFileWriterSupported()
|
boolean |
isInputStreamSupported()
|
boolean |
isObjectSupported()
|
boolean |
isOutputStreamSupported()
|
boolean |
isReaderSupported()
|
boolean |
isSAXSupported()
|
boolean |
isVirtualFileReaderSupported()
|
boolean |
isVirtualFileWriterSupported()
|
boolean |
isWritableTo(IOFlavor dest)
|
boolean |
isWritableTo(MimeType dest)
|
boolean |
isWriterSupported()
|
java.lang.String |
toString()
|
static IOFlavor |
valueOf(java.lang.Class cls)
|
static IOFlavor |
valueOf(MimeType t)
|
static IOFlavor |
valueOf(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DOM
DOMSource
.
public static final int FILE_OUT
public static final int FILE_READER
File
. The source which provides the
data has to implement FileReaderSource
.
public static final int FILE_WRITER
File
. The source which provides the
data has to implement FileWriterSource
.
public static final IOFlavor FS_FLAVOR
public static final IOFlavor GRAPH_LOADER
public static final int INPUT_STREAM
InputStream
. The source which provides the
data has to implement InputStreamSource
.
public static final IOFlavor INVALID
public static final IOFlavor NODE
public static final int OBJECT
Object
. The source which provides the
data has to implement ObjectSource
.
public static final int OUTPUT_STREAM
OutputStream
. The source which provides the
data has to implement OutputStreamSource
.
public static final IOFlavor PROJECT_LOADER
public static final int READER
Reader
. The source which provides the
data has to implement ReaderSource
.
public static final IOFlavor REGISTRY
public static final IOFlavor REGISTRY_LOADER
public static final IOFlavor RESOURCE_LOADER
public static final int SAX
SAXSource
.
public static final IOFlavor SCI_FLAVOR
SCI_FLAVOR
indicates greenscilab files
public static final int TRANSFER_IO_STREAM
public static final int TRANSFER_STREAM
public static final int TRANSFER_TYPES
public static final int VFILE_READER
VirtualFileReaderSource
.
public static final int VFILE_WRITER
VirtualFileWriterSource
.
public static final int WRITER
Writer
. The source which provides the
data has to implement WriterSource
.
public static final IOFlavor XML_FLAVOR
Constructor Detail |
---|
public IOFlavor(MimeType javaMimeType)
public IOFlavor(MimeType mimeType, int features, java.lang.Class objectClass)
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public MimeType getMimeType()
public java.lang.Class getObjectClass()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAssignableFrom(IOFlavor f)
public boolean isDOMSupported()
public boolean isFileReaderSupported()
public boolean isFileWriterSupported()
public boolean isInputStreamSupported()
public boolean isObjectSupported()
public boolean isOutputStreamSupported()
public boolean isReaderSupported()
public boolean isSAXSupported()
public boolean isVirtualFileReaderSupported()
public boolean isVirtualFileWriterSupported()
public boolean isWritableTo(IOFlavor dest)
public boolean isWritableTo(MimeType dest)
public boolean isWriterSupported()
public java.lang.String toString()
toString
in class java.lang.Object
public static IOFlavor valueOf(java.lang.Class cls)
public static IOFlavor valueOf(MimeType t)
public static IOFlavor valueOf(java.lang.String s)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |