com.yworks.yfiles.server.graphml.support
Class GraphDecoder
java.lang.Object
com.yworks.yfiles.server.graphml.support.GraphDecoder
- public class GraphDecoder
- extends Object
Utility class that extracts an input stream from a HTTP request, performing some decoding if necessary.
|
Method Summary |
InputStream |
getGraphInputStream(javax.servlet.http.HttpServletRequest request,
String graphParam)
Extracts an input stream from the given request using the given parameter.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphDecoder
public GraphDecoder()
getGraphInputStream
public InputStream getGraphInputStream(javax.servlet.http.HttpServletRequest request,
String graphParam)
throws IOException
- Extracts an input stream from the given request using the given parameter.
The "graphEncoding" parameter string is used to determine whether the graph string
has to be deflated/decoded.
Valid encoding strings that may be part of the "graphEncoding" parameter are: "base64",
"zlib" and "encodeURIComponent".
- Parameters:
request - The current HTTP requestgraphParam - The parameter which was used to send the GraphML data.
- Returns:
- An input stream for reading the GraphML data or zero-length input stream.
- Throws:
IOException
Copyright © 2000-2007 yWorks GmbH. All
rights reserved