Package net.sourceforge.htmlunit.corejs.javascript.serialize

Examples of net.sourceforge.htmlunit.corejs.javascript.serialize.ScriptableOutputStream.writeObject()


    Object obj = args[ 0 ];
    String filename = Context.toString( args[ 1 ] );
    FileOutputStream fos = new FileOutputStream( filename );
    Scriptable scope = ScriptableObject.getTopLevelScope( thisObj );
    ScriptableOutputStream out = new ScriptableOutputStream( fos, scope );
    out.writeObject( obj );
    out.close();
  }

  @GlobalFunction
  public static Object deserialize( Context cx, Scriptable thisObj, Object[] args, Function funObj ) throws IOException, ClassNotFoundException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.