thinkmap.server.json
Class JSONStreamFormat

java.lang.Object
  extended by thinkmap.server.json.JSONStreamFormat
All Implemented Interfaces:
IStreamFormat

public class JSONStreamFormat
extends Object
implements IStreamFormat


Constructor Summary
JSONStreamFormat()
           
 
Method Summary
 String getMimeType()
          Get the mime-type of this StreamFormat.
 IStreamReader getStreamReader(IStreamFactory factory)
          Produce a new StreamReader for this StreamFactory.
 StreamWriter getStreamWriter(IStreamFactory factory)
          Produce a new StreamWriter for this StreamFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONStreamFormat

public JSONStreamFormat()
Method Detail

getMimeType

public String getMimeType()
Description copied from interface: IStreamFormat
Get the mime-type of this StreamFormat.

Specified by:
getMimeType in interface IStreamFormat
Returns:
the mime-type of this StreamFormat

getStreamReader

public IStreamReader getStreamReader(IStreamFactory factory)
Description copied from interface: IStreamFormat
Produce a new StreamReader for this StreamFactory.

Specified by:
getStreamReader in interface IStreamFormat
Parameters:
factory - the factory that is producing the stream.
Returns:
stream reader

getStreamWriter

public StreamWriter getStreamWriter(IStreamFactory factory)
Description copied from interface: IStreamFormat
Produce a new StreamWriter for this StreamFactory. The StreamFactory is usually passed to the constructor of the StreamWriter, so that it can aquire a stream to write to.

Specified by:
getStreamWriter in interface IStreamFormat
Parameters:
factory - the factory that is producing the stream.
Returns:
stream writer


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.