org.favabeans.file
Class IdentityDataFile
java.lang.Object
|
+--org.favabeans.file.IdentityFile
|
+--org.favabeans.file.IdentityDataFile
- All Implemented Interfaces:
- javax.activation.DataSource, Faceted
- public class IdentityDataFile
- extends IdentityFile
- implements javax.activation.DataSource, Faceted
An IdentityDataFile
represents a concrete data file
containing bytes.
Methods inherited from class org.favabeans.file.IdentityFile |
addFileListener, addPropertyChangeListener, addPropertyChangeListener, delete, equals, exists, fireFileContentsChanged, fireFileDeleted, firePropertyChange, fireStateChanged, getFileRepresentation, getLastModified, getName, getParent, getPath, hashCode, isHidden, isReadable, isWriteable, moveTo, removeFileListener, removePropertyChangeListener, removePropertyChangeListener, setName, setParent, toString, updateFileRepresentation |
Methods inherited from interface javax.activation.DataSource |
getName |
getFacet
public Facet getFacet(Type type)
- Description copied from interface:
Faceted
- Obtain a
Facet
of the requested Type
for this object.
- Specified by:
getFacet
in interface Faceted
- Overrides:
getFacet
in class IdentityFile
- Following copied from interface:
org.favabeans.base.Faceted
- Parameters:
type
- the Type
of Facet
requested for this object.- Returns:
- a
Facet
, or null
if none can
be created as requested.
getLength
public long getLength()
resetIOStreams
public boolean resetIOStreams()
getContentType
public String getContentType()
- Specified by:
getContentType
in interface javax.activation.DataSource
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface javax.activation.DataSource
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface javax.activation.DataSource
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.