com.isomorphic.js
Interface IToJSON
- All Known Implementing Classes:
- DataSource
- public interface IToJSON
Mark with and implement this interface on any class you want to make JS-serializeable by the
ISC server engine.
|
Method Summary |
void |
toJSON(java.io.Writer out,
JSTranslater jsTrans)
Translate to some reasonable javascript literal. |
toJSON
public void toJSON(java.io.Writer out,
JSTranslater jsTrans)
throws UnconvertableException,
java.io.IOException
- Translate to some reasonable javascript literal. If you're going to use a JSTranslater
to serialize any portion of your object, you should use the instance that's passed into
this method to preserve recursion detection.
- Parameters:
out - Write your javascript translation of this object to this writer.jsTrans - The calling JSTranslater instance