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

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

public class CharacterSink_1Writer
extends Writer

Streams: Character Sink Writer


Field Summary
protected  ExecutionContext callbackContext
          Callback Context
protected static int DEFAULT_CAPACITY
          The stream's default capacity
protected  CharacterSink_1_0 out
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CharacterSink_1Writer(CharacterSink_1_0 sink, ExecutionContext callbackContext)
          Constructor
CharacterSink_1Writer(CharacterSink_1_0 sink, int capacity, ExecutionContext callbackContext)
          Constructor
 
Method Summary
 void close()
           
 void flush()
           
protected  boolean isOpen()
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected CharacterSink_1_0 out

DEFAULT_CAPACITY

protected static int DEFAULT_CAPACITY
The stream's default capacity


callbackContext

protected final ExecutionContext callbackContext
Callback Context

Constructor Detail

CharacterSink_1Writer

public CharacterSink_1Writer(CharacterSink_1_0 sink,
                             int capacity,
                             ExecutionContext callbackContext)
Constructor

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

CharacterSink_1Writer

public CharacterSink_1Writer(CharacterSink_1_0 sink,
                             ExecutionContext callbackContext)
Constructor

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

isOpen

protected boolean isOpen()

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

flush

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

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
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.