org.jclarion.clarion.util
Class SharedWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.jclarion.clarion.util.SharedWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.CharSequence

public class SharedWriter
extends java.io.Writer
implements java.lang.CharSequence


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SharedWriter()
           
 
Method Summary
 java.io.Writer append(char c)
           
 java.io.Writer append(java.lang.CharSequence csq, int start, int end)
           
 char charAt(int index)
           
 void close()
           
 boolean endsWith(byte test)
           
 boolean endsWith(char c)
           
 boolean endsWith(char[] test)
           
 void flush()
           
 char[] getBuffer()
           
 int getLastByte()
           
 char getLastByteNoCheck()
           
 int getSize()
           
 int length()
           
 void reset()
           
 void shrink()
           
 void shrink(char[] test)
           
 void skip(long ofs)
           
 java.lang.CharSequence subSequence(int start, int end)
           
 java.lang.String toString()
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(java.lang.String str, int off, int len)
           
 
Methods inherited from class java.io.Writer
append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharedWriter

public SharedWriter()
Method Detail

reset

public void reset()

getSize

public int getSize()

getBuffer

public char[] getBuffer()

append

public java.io.Writer append(char c)
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer

append

public java.io.Writer append(java.lang.CharSequence csq,
                             int start,
                             int end)
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer

close

public void close()
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer

flush

public void flush()
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer

write

public void write(char[] cbuf,
                  int off,
                  int len)
Specified by:
write in class java.io.Writer

write

public void write(int c)
Overrides:
write in class java.io.Writer

write

public void write(java.lang.String str,
                  int off,
                  int len)
Overrides:
write in class java.io.Writer

charAt

public char charAt(int index)
Specified by:
charAt in interface java.lang.CharSequence

length

public int length()
Specified by:
length in interface java.lang.CharSequence

subSequence

public java.lang.CharSequence subSequence(int start,
                                          int end)
Specified by:
subSequence in interface java.lang.CharSequence

toString

public java.lang.String toString()
Specified by:
toString in interface java.lang.CharSequence
Overrides:
toString in class java.lang.Object

endsWith

public boolean endsWith(char c)

getLastByte

public int getLastByte()

getLastByteNoCheck

public char getLastByteNoCheck()

shrink

public void shrink()

endsWith

public boolean endsWith(char[] test)

shrink

public void shrink(char[] test)

endsWith

public boolean endsWith(byte test)

skip

public void skip(long ofs)


Copyright © 2010. All Rights Reserved.