Package org.persvr.util

Examples of org.persvr.util.BufferedDataInput.readByte()


  void readNames() throws IOException {
    BufferedDataInput namesInput = new BufferedDataInput(namesFile);
    while (namesInput.getFilePointer() < namesInput.length()) {
      int pointer = (int) namesInput.getFilePointer();
      byte block = namesInput.readByte();
      String propName = namesInput.readString();
      switch (block) {
      case NAMES_HEADER_TABLE_NAME:
      case NAMES_HEADER_SUB_TABLE_NAME:
        tableNameIds.put(propName, pointer);
View Full Code Here


        byte start;
        do {
          // see it is a reference first
          bdi.mark();
          start = bdi.readByte();
          bdi.goBackOne();
          if (start == HEADER_INDEX_REFERENCE_INTEGER || start == HEADER_INDEX_REFERENCE_LONG) {
            // it is a reference, continue
            reference = readVarLong(bdi);
            entriesList.add((IndexEntry) (depth == 0 ? new IndexEntry(upperBound, reference) : new BranchEntry(upperBound, reference,
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.