org.entityfs.util.io
Class RandomAccessOutputStreamAdapter

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.entityfs.util.io.RandomAccessOutputStreamAdapter
All Implemented Interfaces:
Closeable, Flushable

Deprecated. Use the RandomAccessToOutputStreamAdapter class instead. This class will be deleted in a future release.

@Deprecated
public class RandomAccessOutputStreamAdapter
extends FilterOutputStream

This adapter treats a RandomAccess as an OutputStream .

Since:
1.0
Author:
Karl Gustafsson

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
RandomAccessOutputStreamAdapter(RandomAccess ra)
          Deprecated. Create an adapter between a RandomAccess and an OutputStream.
RandomAccessOutputStreamAdapter(RandomAccess ra, boolean closeRandomAccessWhenClosingStream)
          Deprecated. Create an adapter between a RandomAccess and an OutputStream.
 
Method Summary
 void close()
          Deprecated.  
 void flush()
          Deprecated.  
 void write(byte[] barr)
          Deprecated.  
 void write(byte[] barr, int off, int len)
          Deprecated.  
 void write(int b)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessOutputStreamAdapter

public RandomAccessOutputStreamAdapter(RandomAccess ra)
Deprecated. 
Create an adapter between a RandomAccess and an OutputStream.

When this adapter is closed, it closes the underlying RandomAccess object. See RandomAccessOutputStreamAdapter(RandomAccess, boolean)

Parameters:
ra - The RandomAccess to adapt.

RandomAccessOutputStreamAdapter

public RandomAccessOutputStreamAdapter(RandomAccess ra,
                                       boolean closeRandomAccessWhenClosingStream)
Deprecated. 
Create an adapter between a RandomAccess and an OutputStream.

Parameters:
ra - The RandomAccess to adapt.
closeRandomAccessWhenClosingStream - Should the RandomAccess be closed when this stream is closed?
Method Detail

write

public void write(byte[] barr)
Deprecated. 
Overrides:
write in class FilterOutputStream

write

public void write(byte[] barr,
                  int off,
                  int len)
Deprecated. 
Overrides:
write in class FilterOutputStream

write

public void write(int b)
Deprecated. 
Overrides:
write in class FilterOutputStream

flush

public void flush()
Deprecated. 
Specified by:
flush in interface Flushable
Overrides:
flush in class FilterOutputStream

close

public void close()
Deprecated. 
Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream