Liferay 6.2-ce-ga5

com.liferay.portal.kernel.io.unsync
Class UnsyncCharArrayWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.liferay.portal.kernel.io.unsync.UnsyncCharArrayWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class UnsyncCharArrayWriter
extends Writer


Field Summary
protected  char[] buffer
           
protected  int index
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
UnsyncCharArrayWriter()
           
UnsyncCharArrayWriter(int initialSize)
           
 
Method Summary
 Writer append(char c)
           
 Writer append(CharSequence charSequence)
           
 Writer append(CharSequence charSequence, int start, int end)
           
 void close()
           
 void flush()
           
 void reset()
           
 int size()
           
 CharBuffer toCharBuffer()
           
 String toString()
           
 void write(char[] chars)
           
 void write(char[] chars, int offset, int length)
           
 void write(int c)
           
 void write(String string)
           
 void write(String string, int offset, int length)
           
 int writeTo(CharBuffer charBuffer)
           
 int writeTo(OutputStream outputStream, String charsetName)
           
 int writeTo(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

protected char[] buffer

index

protected int index
Constructor Detail

UnsyncCharArrayWriter

public UnsyncCharArrayWriter()

UnsyncCharArrayWriter

public UnsyncCharArrayWriter(int initialSize)
Method Detail

append

public Writer append(char c)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public Writer append(CharSequence charSequence)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public Writer append(CharSequence charSequence,
                     int start,
                     int end)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in interface AutoCloseable
Specified by:
close in class Writer

flush

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

reset

public void reset()

size

public int size()

toCharBuffer

public CharBuffer toCharBuffer()

toString

public String toString()
Overrides:
toString in class Object

write

public void write(char[] chars)
Overrides:
write in class Writer

write

public void write(char[] chars,
                  int offset,
                  int length)
Specified by:
write in class Writer

write

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

write

public void write(String string)
Overrides:
write in class Writer

write

public void write(String string,
                  int offset,
                  int length)
Overrides:
write in class Writer

writeTo

public int writeTo(CharBuffer charBuffer)

writeTo

public int writeTo(OutputStream outputStream,
                   String charsetName)
            throws IOException
Throws:
IOException

writeTo

public int writeTo(Writer writer)
            throws IOException
Throws:
IOException

Liferay 6.2-ce-ga5