|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
com.infoengine.au.DirectoryPropertyInputStream
public class DirectoryPropertyInputStream
This class implements an input stream class that uses the JNDI adapter to read attributes from directory entries. It filters attributes whose values have Java property file syntax, i.e. name=value.
| Constructor Summary | |
|---|---|
DirectoryPropertyInputStream()
Constructs an instance that is not initially associated with a directory entry. |
|
DirectoryPropertyInputStream(java.lang.String url)
Constructs an instance that is associated with a specific directory entry. |
|
| Method Summary | |
|---|---|
int |
available()
Returns the number of bytes that can be read without blocking. |
void |
close()
Closes the input stream and releases all resources allocated to it. |
java.lang.String |
getUrl()
Returns the URL of the directory entry currently associated with the input stream. |
static void |
main(java.lang.String[] args)
|
void |
mark(int readLimit)
Marks the current position in the input stream. |
boolean |
markSupported()
Returns an indication of support for input stream marking. |
int |
read()
Returns a byte from the input stream. |
int |
read(byte[] b)
Reads bytes from the input stream into an array. |
int |
read(byte[] b,
int off,
int len)
Read bytes from the input stream into an array or subarray. |
java.lang.String |
readLine()
Reads a line of text from the input stream using the default character encoding for the platform. |
java.lang.String |
readLine(java.lang.String encoding)
Read a line of text from the input stream using a specified character encoding. |
void |
reset()
Resets the input stream to the position of the last mark set. |
void |
setUrl(java.lang.String url)
Sets the URL of the directory entry associated with the input stream. |
long |
skip(long n)
Reads and discards bytes from the input stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryPropertyInputStream()
throws IEException
IEException - if the JNDI adapter can not be loaded
or initialized successfully
public DirectoryPropertyInputStream(java.lang.String url)
throws IEException
url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) to be read from the entry.
IEException - if the URL can not be used to read the
specified directory entry successfully, or
the JNDI adapter can not be loaded or
initialized successfully| Method Detail |
|---|
public void setUrl(java.lang.String url)
throws IEException
url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) to be read from the entry.
IEException - if the URL can not be used to read the
specified directory entry successfullypublic java.lang.String getUrl()
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - if the number of available bytes can not be
determined.
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException - if the output stream can not be closed.public void mark(int readLimit)
mark in class java.io.InputStreamreadLimit - The position to be marked.public boolean markSupported()
markSupported in class java.io.InputStream
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if the input stream can not be read.
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamb - The array in which to store the bytes read.
java.io.IOException - if the input stream can not be read.
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamb - The array in which to store the bytes read.off - The offset in the array at which to begin storing bytes.len - The maximum number of bytes to read.
java.io.IOException - if the input stream can not be read.
public java.lang.String readLine()
throws java.io.IOException
java.io.IOException - if the input stream can not be read.
public java.lang.String readLine(java.lang.String encoding)
throws java.io.IOException
encoding - The character encoding to apply to the bytes read
from the input stream.
java.io.IOException - if the input stream can not be read.
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException - if the input stream can not be reset.
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamn - The number of bytes to read and discard.
java.io.IOException - if the input stream can not be read.public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||