com.kawao.kakasi
Class KanjiOutput

java.lang.Object
  |
  +--java.io.Writer
        |
        +--com.kawao.kakasi.KanjiOutput

public class KanjiOutput
extends java.io.Writer

An object of this class is used as destination of the conversion.

Version:
$Revision: 1.2 $ $Date: 2003/01/01 08:18:44 $
Author:
Kawao, Tomoyuki (kawao@kawao.com)
See Also:
Kakasi.getOutput()

Fields inherited from class java.io.Writer
lock
 
Method Summary
 void close()
          Close the stream.
 void flush()
          Flush the stream.
 boolean isAutoFlushMode()
          Gets the auto flush mode property value.
 boolean isSplitMode()
          Gets the split mode property value.
 void setAutoFlushMode(boolean newMode)
          Sets the auto flush mode property value.
 void setSplitMode(boolean newMode)
          Sets the split mode property value.
 void setWriter(java.io.Writer newWriter)
          Sets the writer object.
 void write(char[] cbuf, int off, int len)
          Write a portion of an array of characters.
 void write(int c)
          Write a single character.
 
Methods inherited from class java.io.Writer
write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setWriter

public void setWriter(java.io.Writer newWriter)
Sets the writer object.
Parameters:
newWriter - new writer object.

setAutoFlushMode

public void setAutoFlushMode(boolean newMode)
Sets the auto flush mode property value. The default value is true.
Parameters:
newMode - if true the output buffer is flushed when a newline character is written.

isAutoFlushMode

public boolean isAutoFlushMode()
Gets the auto flush mode property value.

setSplitMode

public void setSplitMode(boolean newMode)
Sets the split mode property value. The default value is false.
Parameters:
newMode - the new split mode.

isSplitMode

public boolean isSplitMode()
Gets the split mode property value.

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Write a portion of an array of characters.
Overrides:
write in class java.io.Writer
Parameters:
cbuf - Array of characters
off - Offset from which to start writing characters
len - Number of characters to write
Throws:
java.io.IOException - If an I/O error occurs

write

public void write(int c)
           throws java.io.IOException
Write a single character.
Overrides:
write in class java.io.Writer
Parameters:
c - int specifying a character to be written.
Throws:
java.io.IOException - If an I/O error occurs

flush

public void flush()
           throws java.io.IOException
Flush the stream.
Overrides:
flush in class java.io.Writer
Throws:
java.io.IOException - If an I/O error occurs

close

public void close()
           throws java.io.IOException
Close the stream.
Overrides:
close in class java.io.Writer
Throws:
java.io.IOException - If an I/O error occurs


Copyright (c) 2002-2003 Tomoyuki Kawao. All Rights Reserved.