Name
Document
Synopsis
This interface is used to identify a simple document, the contents of which can be sent to a given output stream or read from a particular input stream. JXTA classes typically work with structured documents instead of this class.
public interface Document { // Public Instance Methods public abstract String getFileExtension(); public abstract MimeMediaType getMimeType(); public abstract InputStream getStream() throws IOException; public abstract void sendToStream(OutputStream stream) throws IOException; }
Implementations
StructuredDocument, TextDocument
Passed To
net.jxta.codat.Codat.Codat(),
net.jxta.codat.Metadata.Metadata()
Returned By
net.jxta.codat.Codat.getDocument(),
Advertisement.getDocument(),
net.jxta.protocol.DiscoveryQueryMsg.getDocument(),
net.jxta.protocol.DiscoveryResponseMsg.getDocument(),
net.jxta.protocol.PeerInfoQueryMessage.getDocument(),
net.jxta.protocol.PeerInfoResponseMessage.getDocument(),
net.jxta.protocol.ResolverQueryMsg.getDocument(),
net.jxta.protocol.ResolverResponseMsg.getDocument()
Type Of
net.jxta.codat.Codat.doc
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access