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 Writerappend(CharSequence csq) final Writerappend(CharSequence csq, int start, int end) voidclose()voidflush()final StreamCharBufferbooleanisClosed()booleanisUsed()final voidmarkUsed()intfinal voidwrite(char[] b, int off, int len) voidwrite(int b) final voidfinal voidfinal voidwrite(StreamCharBuffer subBuffer) Methods inherited from class java.io.Writer
append, nullWriter, write
-
Constructor Details
-
StreamCharBufferWriter
public StreamCharBufferWriter()
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
isClosed
public boolean isClosed() -
isUsed
public boolean isUsed() -
markUsed
public final void markUsed() -
resetUsed
public int resetUsed() -
write
- Overrides:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
getBuffer
-