Package lev

Examples of lev.LImport


      Map<SubStringPointer.Files, LImport> streams = srcMod.stringStreams;
      if (data.isValid() && streams.containsKey(file)) {
    int index = Ln.arrayToInt(data.getData());
    if (srcMod.stringLocations.get(file).containsKey(index)) {
        int offset = srcMod.stringLocations.get(file).get(index);
        LImport stream = streams.get(file);

        stream.pos(offset);

        switch (file) {
      case STRINGS:
          int input;
          String string = "";
          while ((input = stream.read()) != 0) {
        string += (char) input;
          }
          text.setString(string);
          break;
      default:
          int length = Ln.arrayToInt(stream.extractInts(0, 4));
          String in = Ln.arrayToString(stream.extractInts(0, length - 1)); // -1 to exclude null end
          if (!in.equals("")) {
        text.setString(in);
          }
        }
View Full Code Here

TOP

Related Classes of lev.LImport

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.