public final class StateWriter extends Writer
Potential optimizations:
Constructor and Description |
---|
StateWriter(Writer initialOut,
int initialSize) |
StateWriter(Writer initialOut,
int initialSize,
FacesContext facesContext) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
String |
getAndResetBuffer() |
static StateWriter |
getCurrentInstance() |
static StateWriter |
getCurrentInstance(FacesContext facesContext) |
boolean |
isStateWritten() |
boolean |
isStateWrittenWithoutWrapper() |
void |
release() |
void |
release(FacesContext facesContext) |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
void |
writingState()
Mark that state is about to be written.
|
void |
writingStateWithoutWrapper() |
public StateWriter(Writer initialOut, int initialSize)
public StateWriter(Writer initialOut, int initialSize, FacesContext facesContext)
public static StateWriter getCurrentInstance()
public static StateWriter getCurrentInstance(FacesContext facesContext)
public void writingState()
public boolean isStateWritten()
public void writingStateWithoutWrapper()
public boolean isStateWrittenWithoutWrapper()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException
public String getAndResetBuffer()
public void release()
public void release(FacesContext facesContext)
Copyright © 2020 The Apache Software Foundation. All rights reserved.