org.jclarion.clarion.util
Class SharedWriter
java.lang.Object
java.io.Writer
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
| Fields inherited from class java.io.Writer |
lock |
| 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 |
SharedWriter
public SharedWriter()
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.