Package org.apache.myfaces.util.lang
Class StreamCharBuffer.StreamCharBufferWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.myfaces.util.lang.StreamCharBuffer.StreamCharBufferWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
- StreamCharBuffer
public final class StreamCharBuffer.StreamCharBufferWriter extends Writer
This is the java.io.Writer implementation for StreamCharBuffer- Author:
- Lari Hotari, Sagire Software Oy
-
-
Constructor Summary
Constructors Constructor Description StreamCharBufferWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Writer
append(CharSequence csq)
Writer
append(CharSequence csq, int start, int end)
void
close()
void
flush()
StreamCharBuffer
getBuffer()
boolean
isClosed()
boolean
isUsed()
void
markUsed()
int
resetUsed()
void
write(char[] b, int off, int len)
void
write(int b)
void
write(String str)
void
write(String str, int off, int len)
void
write(StreamCharBuffer subBuffer)
-
Methods inherited from class java.io.Writer
append, nullWriter, write
-
-
-
-
Method Detail
-
write
public final void write(char[] b, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
public final void write(String str) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public final void write(String str, int off, int len) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public final void write(StreamCharBuffer subBuffer) throws IOException
- Throws:
IOException
-
append
public final Writer append(CharSequence csq, int start, int end) throws IOException
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
public final Writer append(CharSequence csq) throws IOException
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
isClosed
public boolean isClosed()
-
isUsed
public boolean isUsed()
-
markUsed
public final void markUsed()
-
resetUsed
public int resetUsed()
-
write
public void write(int b) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
getBuffer
public final StreamCharBuffer getBuffer()
-
-