Package java.io

Examples of java.io.DataInputStream.readChar()


          
           byte strLen=dis.readByte();
           dt.filename="";
           for (int j=0;j<strLen;j++)
           {
             dt.filename+=dis.readChar();
           }         
          
           dt.position=dis.readLong();
           dt.size=dis.readLong();
        
View Full Code Here


                            StringBuffer datasetname = new StringBuffer();
                            _currentdataset++;

                            // New set name, ends in \n.
                            while (c != '\n') {
                                datasetname.append(in.readChar());
                            }

                            _plot.addLegend(_currentdataset, datasetname
                                    .toString());
                            _plot.setConnected(true);
View Full Code Here

      shdh.charHeap = new char[stringheapsz];
      for (int i = 0; i < stringheapsz; i++) {
        if (swap) {
          shdh.charHeap[i] = swap2(dis, bytebuf);
        } else {
          shdh.charHeap[i] = dis.readChar();
        }
      }
      shdh.charHeapPos = stringheapsz;

      // word alignment
View Full Code Here

      }
      shdh.charHeapPos = stringheapsz;

      // word alignment
      if (stringheapsz % 2 != 0) {
        dis.readChar();
      }

      // string ref heap
      int refheapsz = 0;
      if (swap) {
View Full Code Here

      shdh.charHeap = new char[stringheapsz];
      for (int i = 0; i < stringheapsz; i++) {
        if (swap) {
          shdh.charHeap[i] = swap2(dis, bytebuf);
        } else {
          shdh.charHeap[i] = dis.readChar();
        }
      }
      shdh.charHeapPos = stringheapsz;

      // word alignment
View Full Code Here

      }
      shdh.charHeapPos = stringheapsz;

      // word alignment
      if (stringheapsz % 2 != 0) {
        dis.readChar();
      }

      // string ref heap
      int refheapsz = 0;
      if (swap) {
View Full Code Here

  // letter index
        //
  int letterIndexSize = dis.readInt();
  letterIndex = new HashMap();
  for (int i = 0; i < letterIndexSize; i++) {
      char c = dis.readChar();
      int index = dis.readInt();
      letterIndex.put(Character.toString(c), new Integer(index));
  }

  // statemachine states
View Full Code Here

      throw ioe;
    } finally {
      // receive the last byte that indicates the proxy released its thread resource
      if (opStatus == SUCCESS) {
        try {
          proxyReply.readChar();
        } catch (IOException ignored) {
        }
      }
     
      // now release the thread resource
View Full Code Here

      throw ioe;
    } finally {
      // receive the last byte that indicates the proxy released its thread resource
      if (opStatus == DataTransferProtocol.OP_STATUS_SUCCESS) {
        try {
          proxyReply.readChar();
        } catch (IOException ignored) {
        }
      }
     
      // now release the thread resource
View Full Code Here

      this.getStringHeap().stringHeap = new char[stringheapsz];
      for (int i = 0; i < stringheapsz; i++) {
        if (swap) {
          this.getStringHeap().stringHeap[i] = swap2(dis, bytebuf);
        } else {
          this.getStringHeap().stringHeap[i] = dis.readChar();
        }
      }
      this.getStringHeap().charHeapPos = stringheapsz;

      // word alignment
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.