|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.management.repository.DocumentContentSource
public class DocumentContentSource
A DocumentContentSource contains a complete configuration document,
consisting of an input stream from which the document can be read
and a Document
object with identifying information.
Constructor Summary | |
---|---|
DocumentContentSource(Document doc,
byte[] data)
Creates a DocumentContentSource instance given a document
and a byte array. |
|
DocumentContentSource(Document doc,
java.io.File file)
Creates a DocumentContentSource instance given a document
and a file. |
|
DocumentContentSource(Document doc,
java.io.InputStream src)
Creates a DocumentContentSource instance given a document
and an input stream. |
Method Summary | |
---|---|
Document |
getDocument()
Retrieves the document in this object. |
long |
getLastModified()
Retrieves the last modified time of this document. |
java.io.InputStream |
getSource()
Gets the document source as an input stream. |
void |
setDocument(Document document)
Sets the document. |
void |
setLastModified(long t)
Sets the last modified time for this document. |
void |
setSource(byte[] data)
Sets a byte array as the document source. |
void |
setSource(java.io.File file)
Sets a File instance as the document source. |
void |
setSource(java.io.InputStream source)
Sets an input stream as the document source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentContentSource(Document doc, java.io.InputStream src)
DocumentContentSource
instance given a document
and an input stream.
doc
- the document instancesrc
- input stream containing the document contentspublic DocumentContentSource(Document doc, byte[] data)
DocumentContentSource
instance given a document
and a byte array.
doc
- the document instancedata
- byte array containing the document contentspublic DocumentContentSource(Document doc, java.io.File file)
DocumentContentSource
instance given a document
and a file.
doc
- the document instancefile
- file that contains the document contentsMethod Detail |
---|
public Document getDocument()
public void setDocument(Document document)
document
- the document to be set for this objectpublic java.io.InputStream getSource()
public void setSource(java.io.InputStream source)
source
- the input stream to use as the document sourcepublic void setSource(byte[] data)
data
- byte array to use as the document sourcepublic void setSource(java.io.File file)
File
instance as the document source.
file
- file to use as the document sourcepublic long getLastModified()
public void setLastModified(long t)
t
- last modified time
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |