|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.document.BinaryDocument
public class BinaryDocument
This class is an implementation of the Document interface. It is perhaps the simplest implementation of the Document interface possible.
| Constructor Summary | |
|---|---|
BinaryDocument(byte[] someBytes)
Creates new BinaryDocument |
|
| Method Summary | |
|---|---|
String |
getFileExtension()
Returns the file extension type used by this Document. |
MimeMediaType |
getMimeType()
Returns the MIME Media type of this Document per IETF RFC 2046 MIME : Media Types. |
InputStream |
getStream()
Returns a stream of bytes which represent the content of this Document. |
static MimeMediaType[] |
getSupportedMimeTypes()
Returns the MIME Media types supported by this this Document per IETF RFC 2046 MIME : Media Types. |
void |
sendToStream(OutputStream stream)
Returns a stream of bytes which represent the content of this Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryDocument(byte[] someBytes)
someBytes - Contains a byte array which will serve as our data.| Method Detail |
|---|
public static MimeMediaType[] getSupportedMimeTypes()
public MimeMediaType getMimeType()
getMimeType in interface Documentpublic String getFileExtension()
getFileExtension in interface Document
public InputStream getStream()
throws IOException
getStream in interface DocumentInputStream containting the bytes of this Document.
IOException
public void sendToStream(OutputStream stream)
throws IOException
sendToStream in interface DocumentIOException
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||