Package org.globus.gsi.gssapi.net
Class GssInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.globus.gsi.gssapi.net.GssInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
GridFTPInputStream,GSIGssInputStream
public abstract class GssInputStream extends InputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]buffprotected GSSContextcontextprotected InputStreaminprotected intindex
-
Constructor Summary
Constructors Constructor Description GssInputStream(InputStream in, GSSContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()protected booleanhasData()intread()intread(byte[] data)intread(byte[] data, int off, int len)protected abstract voidreadMsg()protected byte[]unwrap(byte[] msg)-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
in
protected InputStream in
-
context
protected GSSContext context
-
buff
protected byte[] buff
-
index
protected int index
-
-
Constructor Detail
-
GssInputStream
public GssInputStream(InputStream in, GSSContext context)
-
-
Method Detail
-
unwrap
protected byte[] unwrap(byte[] msg) throws IOException- Throws:
IOException
-
readMsg
protected abstract void readMsg() throws IOException- Throws:
IOException
-
read
public int read(byte[] data) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] data, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
hasData
protected boolean hasData() throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
-