|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sf.cafebabe.activation.ArchivedDataSource
public class ArchivedDataSource
This class represents data source from the archive entry.
Constructor Summary | |
---|---|
ArchivedDataSource(java.util.zip.ZipFile zipFile,
java.lang.String entryName)
Creates new data source for the archive entry |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Gets te content type of the data. |
java.io.InputStream |
getInputStream()
Gets the source as an input stream |
java.lang.String |
getName()
Gets the name of this source |
java.io.OutputStream |
getOutputStream()
This source could not be represented as output stream, because saving in archive is not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchivedDataSource(java.util.zip.ZipFile zipFile, java.lang.String entryName)
zipFile
- the zip fileentryName
- the entry nameMethod Detail |
---|
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
- the I/O exceptionpublic java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.lang.String getName()
getName
in interface javax.activation.DataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |