org.globus.gsi.gssapi
Class TokenInputStream
java.lang.Object
java.io.InputStream
org.globus.gsi.gssapi.TokenInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class TokenInputStream
- extends java.io.InputStream
Used as token-oriented input stream needed for SSL library I/O abstraction.
Methods inherited from class java.io.InputStream |
mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TokenInputStream
public TokenInputStream()
putToken
public void putToken(byte[] buf,
int off,
int len)
read
public int read(byte[] data)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] data,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
checkData
protected boolean checkData()
hasData
protected boolean hasData()
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object