org.openmdx.base.stream.rmi.cci
Class BinarySink_1OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.openmdx.base.stream.rmi.cci.BinarySink_1OutputStream
All Implemented Interfaces:
Closeable, Flushable

public class BinarySink_1OutputStream
extends OutputStream

Streams: Character Sink Writer


Field Summary
protected  ExecutionContext callbackContext
          Callback Context
protected static int DEFAULT_CAPACITY
          The stream's default capacity
protected  BinarySink_1_0 out
           
 
Constructor Summary
BinarySink_1OutputStream(BinarySink_1_0 sink, ExecutionContext callbackContext)
          Constructor
BinarySink_1OutputStream(BinarySink_1_0 sink, int capacity, ExecutionContext callbackContext)
          Constructor
 
Method Summary
 void close()
           
 void flush()
           
protected  boolean isOpen()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected BinarySink_1_0 out

DEFAULT_CAPACITY

protected static int DEFAULT_CAPACITY
The stream's default capacity


callbackContext

protected final ExecutionContext callbackContext
Callback Context

Constructor Detail

BinarySink_1OutputStream

public BinarySink_1OutputStream(BinarySink_1_0 sink,
                                int capacity,
                                ExecutionContext callbackContext)
Constructor

Parameters:
sink -
capacity -
callbackContext - The execution context for callbacks

BinarySink_1OutputStream

public BinarySink_1OutputStream(BinarySink_1_0 sink,
                                ExecutionContext callbackContext)
Constructor

Parameters:
sink -
callbackContext - The execution context for callbacks
Method Detail

isOpen

protected boolean isOpen()

write

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

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.