com.sun.faces.facelets
final class StateWriter extends java.io.Writer
Potential optimizations:
Modifier and Type | Field and Description |
---|---|
private static java.lang.ThreadLocal |
CURRENT_WRITER |
private FastWriter |
fast |
private int |
initialSize |
private java.io.Writer |
out |
private boolean |
writtenState |
Constructor and Description |
---|
StateWriter(java.io.Writer initialOut,
int initialSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
java.lang.String |
getAndResetBuffer() |
static StateWriter |
getCurrentInstance() |
boolean |
isStateWritten() |
void |
release() |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str) |
void |
write(java.lang.String str,
int off,
int len) |
void |
writingState()
Mark that state is about to be written.
|
private int initialSize
private java.io.Writer out
private FastWriter fast
private boolean writtenState
private static final java.lang.ThreadLocal CURRENT_WRITER
public static StateWriter getCurrentInstance()
public void writingState()
public boolean isStateWritten()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(char[] cbuf) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(int c) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String str) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public java.lang.String getAndResetBuffer()
public void release()
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.