*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.iom
Class OutputStream
java.lang.Object
java.io.OutputStream
com.sas.iom.OutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@SASScope("ALL")
@BinaryCompatibilityOnly
public class OutputStream
extends OutputStream
Provides the capability to write output to an IOM OutputStream.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()com.sas.io.OutputStreamHeaderInterfaceGet the header interface for this OutputStream.voidputData(byte[] data) Put data to this OutputStream.voidputData(String data) Put data to this OutputStream.voidputData(String data, String encoding) Put data to this OutputStream.voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OutputStream
public OutputStream(ICacheWriter iCacheWriter, ICacheService iCacheService)
-
-
Method Details
-
getHeader
public com.sas.io.OutputStreamHeaderInterface getHeader()Get the header interface for this OutputStream.- Returns:
- header OutputStream header.
- See Also:
-
putData
public void putData(byte[] data) Put data to this OutputStream.- Parameters:
data- Data to write.
-
putData
public void putData(String data) Put data to this OutputStream.- Parameters:
data- Data to write.
-
putData
public void putData(String data, String encoding) Put data to this OutputStream.- Parameters:
data- Data to write.encoding- Name of a supported charset.
-
write
public void write(int b) throws IOException - Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException - Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException - Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public 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
-