***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.iom
Class OutputStream

com.sas.iom.OutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class OutputStream

Provides the capability to write output to an IOM OutputStream.

Since:
1.0

Constructor Summary
OutputStream(com.sas.iom.SASCache.ICacheWriter iCacheWriter, com.sas.iom.SASCache.ICacheService iCacheService)
           
 
Method Summary
 void close()
           
 void flush()
           
 com.sas.io.OutputStreamHeaderInterface getHeader()
          Get the header interface for this OutputStream.
 void putData(byte[] data)
          Put data to this OutputStream.
 void putData(java.lang.String data)
          Put data to this OutputStream.
 void putData(java.lang.String data, java.lang.String encoding)
          Put data to this OutputStream.
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 

Constructor Detail

OutputStream

public OutputStream(com.sas.iom.SASCache.ICacheWriter iCacheWriter,
                    com.sas.iom.SASCache.ICacheService iCacheService)
Method Detail

getHeader

public com.sas.io.OutputStreamHeaderInterface getHeader()
Get the header interface for this OutputStream.

Returns:
header OutputStream header.
See Also:
OutputStreamHeaderInterface

putData

public void putData(byte[] data)
Put data to this OutputStream.

Parameters:
data - Data to write.

putData

public void putData(java.lang.String data)
Put data to this OutputStream.

Parameters:
data - Data to write.

putData

public void putData(java.lang.String data,
                    java.lang.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 java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
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.OutputStream
Throws:
java.io.IOException

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.