|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 |
clone, equals, finalize, 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 file
public SOIFInputStream(String filename,
String encoding)
throws FileNotFoundException,
UnsupportedEncodingException
filename - the SOIF source fileencoding - the character encoding of the input SOIF
public 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)
public SOIFInputStream(InputStream is)
public SOIFInputStream(InputStream is,
String encoding)
throws UnsupportedEncodingException
encoding - the character encoding of the input SOIF| Method Detail |
public void setAllowed(Set attrs)
attrs - the set of allowed attributes (use lower case)
public SOIF readSOIF()
throws IOException
SOIFException - if error in SOIF
IOException - if an I/O error occurs
EOFException - if read past end of streampublic boolean isEOS()
public boolean close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||