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 Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic String getAndResetBuffer()
public void release()
public void release(FacesContext facesContext)
Copyright © 2022 The Apache Software Foundation. All rights reserved.