| java.lang.Object com.sun.portal.search.soif.SOIFInputStream
SOIFInputStream | public class SOIFInputStream (Code) | | SOIFInputStream class. Reads serialized SOIF objects from an input stream.
|
allowed | Set allowed(Code) | | Allowed attributes - all others are ignored
|
debug | final public boolean debug(Code) | | debug
|
SOIFInputStream | public SOIFInputStream(String filename) throws FileNotFoundException(Code) | | Creates a SOIFInputStream reading from the named file.
Parameters: filename - the SOIF source file |
SOIFInputStream | public SOIFInputStream(byte[] data, String encoding) throws UnsupportedEncodingException(Code) | | Creates a SOIFInputStream reading from a byte array.
Parameters: data - the SOIF source byte array Parameters: encoding - the character encoding of the input SOIF |
SOIFInputStream | public SOIFInputStream(byte[] data)(Code) | | Creates a SOIFInputStream reading from a byte array.
Parameters: data - the SOIF source byte array |
SOIFInputStream | public SOIFInputStream(SOIFBuffer sb)(Code) | | Creates a SOIFInputStream reading from a SOIFBuffer.
Parameters: data - the SOIF source SOIFBuffer |
SOIFInputStream | public SOIFInputStream(InputStream is)(Code) | | Creates a SOIFInputStream reading from an InputStream.
Parameters: filename - the SOIF source InoutStream |
SOIFInputStream | public SOIFInputStream(InputStream is, String encoding) throws UnsupportedEncodingException(Code) | | Creates a SOIFInputStream reading from an InputStream.
Parameters: filename - the SOIF source InoutStream Parameters: encoding - the character encoding of the input SOIF |
close | public boolean close()(Code) | | Closes the stream.
false on I/O error |
getChar | char getChar(InputStream is) throws Exception, IOException(Code) | | Char encoder for use with SOIF.
Similar to default Java UTF-8 encoder but altered to
allow all characters so to handle non-UTF8 data in non-strict mode.
This only works for ascii-based charsets, eg, ISO8859-*, UTF-8, UTF-16
|
isEOS | public boolean isEOS()(Code) | | true if stream is at EOS |
readSOIF | public SOIF readSOIF() throws IOException(Code) | | Reads a single SOIF from the underlying input stream.
the next SOIF object from the input stream null when end of stream is reached for the first time throws: SOIFException - if error in SOIF throws: IOException - if an I/O error occurs throws: EOFException - if read past end of stream |
setAllowed | public void setAllowed(Set attrs)(Code) | | Sets a SOIF attribute filter. Only attributes in the allowed set
will be read from the input stream.
Parameters: attrs - the set of allowed attributes (use lower case) |
|
|