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
This is the java.io.Writer implementation for StreamCharBuffer
- Author:
- Lari Hotari, Sagire Software Oy
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Writer
append
(CharSequence csq) final Writer
append
(CharSequence csq, int start, int end) void
close()
void
flush()
final StreamCharBuffer
boolean
isClosed()
boolean
isUsed()
final void
markUsed()
int
final void
write
(char[] b, int off, int len) void
write
(int b) final void
final void
final void
write
(StreamCharBuffer subBuffer) Methods inherited from class java.io.Writer
append, nullWriter, write
-
Constructor Details
-
StreamCharBufferWriter
public StreamCharBufferWriter()
-
-
Method Details
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
close
- 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
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
getBuffer
-