Package org.globus.gsi.gssapi.net
Class GssOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.globus.gsi.gssapi.net.GssOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
GridFTPOutputStream,GSIGssOutputStream
public abstract class GssOutputStream extends OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoFlushprotected byte[]buffprotected GSSContextcontextprotected intindexprotected OutputStreamout
-
Constructor Summary
Constructors Constructor Description GssOutputStream(OutputStream out, GSSContext context)GssOutputStream(OutputStream out, GSSContext context, int size)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()abstract voidflush()booleangetAutoFlush()voidsetAutoFlush(boolean autoFlush)protected byte[]wrap()voidwrite(byte[] data)voidwrite(byte[] data, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Field Detail
-
out
protected OutputStream out
-
context
protected GSSContext context
-
autoFlush
protected boolean autoFlush
-
buff
protected byte[] buff
-
index
protected int index
-
-
Constructor Detail
-
GssOutputStream
public GssOutputStream(OutputStream out, GSSContext context)
-
GssOutputStream
public GssOutputStream(OutputStream out, GSSContext context, int size)
-
-
Method Detail
-
setAutoFlush
public void setAutoFlush(boolean autoFlush)
-
getAutoFlush
public boolean getAutoFlush()
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] data) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] data, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
wrap
protected byte[] wrap() throws IOException- Throws:
IOException
-
flush
public abstract void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-