|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.media.json.internal.RootElementWrapper
public class RootElementWrapper
Collection of root element wrapping/unwrapping utility methods.
| Method Summary | |
|---|---|
static InputStream |
unwrapInput(InputStream inputStream)
Un-wrap input by discarding the wrapping root element. |
static OutputStream |
unwrapOutput(OutputStream outputStream)
Un-wrap output by discarding the wrapping root element. |
static InputStream |
wrapInput(InputStream inputStream,
String rootName)
Wrap input into a root element with a given name. |
static OutputStream |
wrapOutput(OutputStream outputStream,
String rootName)
Wrap output into a root element with a given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InputStream wrapInput(InputStream inputStream,
String rootName)
throws UnsupportedEncodingException
inputStream - input stream.rootName - root element name.
UnsupportedEncodingException - in case the input stream encoding is not supported.
public static InputStream unwrapInput(InputStream inputStream)
throws IOException
inputStream - wrapped input stream.
IOException - in case of I/O error.
public static OutputStream unwrapOutput(OutputStream outputStream)
throws IOException
outputStream - wrapped output stream.
IOException - in case of I/O error.
public static OutputStream wrapOutput(OutputStream outputStream,
String rootName)
throws IOException
outputStream - output stream.rootName - root element name.
IOException - in case of I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||