private static final class ViewHandlerImpl.WriteBehindStateWriter
extends java.io.Writer
Modifier and Type | Field and Description |
---|---|
private char[] |
buf |
private int |
bufSize |
private javax.faces.context.FacesContext |
context |
private static java.lang.ThreadLocal<ViewHandlerImpl.WriteBehindStateWriter> |
CUR_WRITER |
private FastStringWriter |
fWriter |
private java.io.Writer |
orig |
private java.io.Writer |
out |
private static int |
STATE_MARKER_LEN |
private boolean |
stateWritten |
Constructor and Description |
---|
WriteBehindStateWriter(java.io.Writer out,
javax.faces.context.FacesContext context,
int bufSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
flushToWriter()
Write directly from our FastStringWriter to the provided
writer.
|
static ViewHandlerImpl.WriteBehindStateWriter |
getCurrentInstance() |
private static int |
getNextDelimiterIndex(java.lang.StringBuilder builder,
int offset) |
void |
release() |
boolean |
stateWritten() |
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() |
private static final int STATE_MARKER_LEN
private static final java.lang.ThreadLocal<ViewHandlerImpl.WriteBehindStateWriter> CUR_WRITER
private java.io.Writer out
private java.io.Writer orig
private FastStringWriter fWriter
private boolean stateWritten
private int bufSize
private char[] buf
private javax.faces.context.FacesContext context
public WriteBehindStateWriter(java.io.Writer out, javax.faces.context.FacesContext context, int bufSize)
public void write(int c) 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(java.lang.String str) 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(char[] cbuf, int off, int len) throws java.io.IOException
write
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 close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public static ViewHandlerImpl.WriteBehindStateWriter getCurrentInstance()
public void release()
public void writingState()
public boolean stateWritten()
public void flushToWriter() throws java.io.IOException
Write directly from our FastStringWriter to the provided writer.
java.io.IOException
- if an error occursprivate static int getNextDelimiterIndex(java.lang.StringBuilder builder, int offset)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.