com.yworks.yfiles.server.graphml.support
Class GraphDecoder

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.support.GraphDecoder

public class GraphDecoder
extends java.lang.Object

Utility class that extracts an input stream from a HTTP request, performing some decoding if necessary.


Constructor Summary
GraphDecoder()
           
 
Method Summary
 java.io.InputStream getGraphInputStream(HttpServletRequest request, java.lang.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
 

Constructor Detail

GraphDecoder

public GraphDecoder()
Method Detail

getGraphInputStream

public java.io.InputStream getGraphInputStream(HttpServletRequest request,
                                               java.lang.String graphParam)
                                        throws java.io.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 request
graphParam - 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:
java.io.IOException


Copyright © 2000-2013 yWorks GmbH. All rights reserved