|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.portal.search.soif.SOIFInputStream
SOIFInputStream class. Reads serialized SOIF objects from an input stream.
Field Summary | |
boolean |
debug
debug |
Constructor Summary | |
SOIFInputStream(byte[] data)
Creates a SOIFInputStream reading from a byte array. |
|
SOIFInputStream(byte[] data,
String encoding)
Creates a SOIFInputStream reading from a byte array. |
|
SOIFInputStream(InputStream is)
Creates a SOIFInputStream reading from an InputStream. |
|
SOIFInputStream(InputStream is,
String encoding)
Creates a SOIFInputStream reading from an InputStream. |
|
SOIFInputStream(SOIFBuffer sb)
Creates a SOIFInputStream reading from a SOIFBuffer. |
|
SOIFInputStream(String filename)
Creates a SOIFInputStream reading from the named file. |
|
SOIFInputStream(String filename,
String encoding)
Creates a SOIFInputStream reading from the named file. |
Method Summary | |
boolean |
close()
Closes the stream. |
boolean |
isEOS()
|
SOIF |
readSOIF()
Reads a single SOIF from the underlying input stream. |
void |
setAllowed(Set attrs)
Sets a SOIF attribute filter. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final boolean debug
Constructor Detail |
public SOIFInputStream(String filename) throws FileNotFoundException
filename
- the SOIF source filepublic SOIFInputStream(String filename, String encoding) throws FileNotFoundException, UnsupportedEncodingException
filename
- the SOIF source fileencoding
- the character encoding of the input SOIFpublic SOIFInputStream(byte[] data, String encoding) throws UnsupportedEncodingException
data
- the SOIF source byte arrayencoding
- the character encoding of the input SOIFpublic SOIFInputStream(byte[] data)
data
- the SOIF source byte arraypublic SOIFInputStream(SOIFBuffer sb)
data
- the SOIF source SOIFBufferpublic SOIFInputStream(InputStream is)
filename
- the SOIF source InoutStreampublic SOIFInputStream(InputStream is, String encoding) throws UnsupportedEncodingException
filename
- the SOIF source InoutStreamencoding
- the character encoding of the input SOIFMethod Detail |
public void setAllowed(Set attrs)
attrs
- the set of allowed attributes (use lower case)public SOIF readSOIF() throws IOException
SOIFException
- if error in SOIFIOException
- if an I/O error occursEOFException
- if read past end of streampublic boolean isEOS()
public boolean close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |