T - chunk type.public class ChunkedOutput<T> extends GenericType<T> implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
ChunkedOutput()
Create new chunked response.
|
|
ChunkedOutput(Type chunkType)
Create
ChunkedOutput with specified type. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this response - it will be finalized and underlying connections will be closed
or made available for another response.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isClosed()
Get state information.
|
String |
toString() |
void |
write(T chunk)
Write a chunk.
|
getRawType, getTypeprotected ChunkedOutput()
public ChunkedOutput(Type chunkType)
ChunkedOutput with specified type.chunkType - chunk typepublic void write(T chunk) throws IOException
chunk - a chunk instance to be written.IOException - if this response is closed or when encountered any problem during serializing or writing a chunk.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isClosed()
ChunkedOutput can be closed by the client side - client can close connection
from its side.public boolean equals(Object obj)
equals in class GenericType<T>public int hashCode()
hashCode in class GenericType<T>public String toString()
toString in class GenericType<T>Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.