thinkmap.server.json
Class JSONStreamFormat
java.lang.Object
thinkmap.server.json.JSONStreamFormat
- All Implemented Interfaces:
- IStreamFormat
public class JSONStreamFormat
- extends Object
- implements IStreamFormat
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONStreamFormat
public JSONStreamFormat()
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.