Package de.foconis.lsext

Examples of de.foconis.lsext.LSExt2Java


    byte[] buff = new byte[128000];
    int got = fis.read(buff);
    fis.close();
    String lsStr = new String(buff, 0, got);
    buff = null;
    LSExt2Java ls2j = new LSExt2Java(lsStr);
    Object o = ls2j.toJavaObj();
    ls2j.dumpObject(System.out, o);
  }
View Full Code Here


    if (iParser == null)
      return nothing();
    LSFocStringMap docMap = null;
    LSFocStringMap contextMap = null;
    try {
      LSExt2Java e2j = new LSExt2Java(wrStr);
      Object docObj = e2j.toJavaObj();
      if (iProtLevel > 2)
        protocol("DocObj:", e2j, docObj);
      e2j = new LSExt2Java(contextStr);
      Object contextObj = e2j.toJavaObj();
      if (iProtLevel > 2)
        protocol("ContextObj:", e2j, contextObj);
      if (docObj == null)
        docObj = new LSFocStringMap(true);
      else if (!(docObj instanceof LSFocStringMap))
View Full Code Here

      } else {
        ps.print(what);
        ps.print('\n');
        if (ls2j != null || o != null) {
          if (ls2j == null)
            ls2j = new LSExt2Java("");
          ls2j.dumpObject(ps, o);
        }
      }
      ps.close();
      fos.close();
View Full Code Here

    byte[] buff = new byte[128000];
    int got = fis.read(buff);
    fis.close();
    String lsStr = new String(buff, 0, got);
    buff = null;
    LSExt2Java ls2j = new LSExt2Java(lsStr);
    Object o = ls2j.toJavaObj();
    System.out.println("Erster toJavaObj:");
    ls2j.dumpObject(System.out, o);
    Java2LSExt j2ls = new Java2LSExt(o);
    String newLSStr = j2ls.toLSExt();
    System.out.println("Erster toLSExt:");
    System.out.println(newLSStr);
    ls2j = new LSExt2Java(newLSStr);
    Object o2 = ls2j.toJavaObj();
    System.out.println("Zweiter toJavaObj:");
    ls2j.dumpObject(System.out, o2);
    j2ls = new Java2LSExt(o2);
    String newLSStr2 = j2ls.toLSExt();
    System.out.println("Zweiter toLSExt:");
    System.out.println(newLSStr2);
    System.out.println("newLSStr2 eq newLSStr=" + newLSStr2.equals(newLSStr));
View Full Code Here

    long start = System.currentTimeMillis();
    System.out.println("Looptest start: " + start);
    for (int i = 0; i < 100000; i++) {
      Java2LSExt j2ls = new Java2LSExt(o);
      String s = j2ls.toLSExt();
      LSExt2Java ls2j = new LSExt2Java(s);
      o = ls2j.toJavaObj();
    }
    long ready = System.currentTimeMillis();
    System.err.println("Looptest ready: " + ready + " [" + (ready - start) + "]");
  }
View Full Code Here

TOP

Related Classes of de.foconis.lsext.LSExt2Java

Copyright © 2018 www.massapicom. 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.