Package java.io

Examples of java.io.DataInputStream.readChar()


    This.index = new char[indexArraySize];

    /* Read in the index */
    int i;
    for (i = 0; i < This.indexLength; i++) {
      This.index[i] = swapChar(needByteSwap, dis.readChar());
    }

    /* Read in the data.  16 bit data goes in the same array as the index.
     * 32 bit data goes in its own separate data array.
     */
 
View Full Code Here


     * 32 bit data goes in its own separate data array.
     */
    if (width == ValueWidth.BITS_16) {
      This.data16 = This.indexLength;
      for (i = 0; i < This.dataLength; i++) {
        This.index[This.data16 + i] = swapChar(needByteSwap, dis.readChar());
      }
    } else {
      This.data32 = new int[This.dataLength];
      for (i = 0; i < This.dataLength; i++) {
        This.data32[i] = swapInt(needByteSwap, dis.readInt());
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 == 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

       
        for (int i = 0; i < size; i ++) {
            result.m_table_[i] = input.readInt();
        }
        for (int i = 0; i < contsize; i ++) {
            result.m_continuations_[i] = input.readChar();
        }
        input.close();
        return result;
    }
   
View Full Code Here

        This.index = new char[indexArraySize];
       
        /* Read in the index */
        int i;
        for (i=0; i<This.indexLength; i++) {
            This.index[i] = swapChar(needByteSwap, dis.readChar());
        }
       
        /* Read in the data.  16 bit data goes in the same array as the index.
         * 32 bit data goes in its own separate data array.
         */
 
View Full Code Here

         * 32 bit data goes in its own separate data array.
         */
        if (width == ValueWidth.BITS_16) {
            This.data16 = This.indexLength;
            for (i=0; i<This.dataLength; i++) {
                This.index[This.data16 + i] = swapChar(needByteSwap, dis.readChar());
            }
        } else {
            This.data32 = new int[This.dataLength];
            for (i=0; i<This.dataLength; i++) {
                This.data32[i] = swapInt(needByteSwap, dis.readInt());
View Full Code Here

       
        for (int i = 0; i < size; i ++) {
            result.m_table_[i] = input.readInt();
        }
        for (int i = 0; i < contsize; i ++) {
            result.m_continuations_[i] = input.readChar();
        }
        input.close();
        return result;
    }
   
View Full Code Here

        ) {
            int num16BitUnits = (indexes[URES_INDEX_16BIT_TOP] -
                                 indexes[URES_INDEX_KEYS_TOP]) * 2;
            char[] c16BitUnits = new char[num16BitUnits];
            for(int i = 0; i < num16BitUnits; ++i) {
                c16BitUnits[i] = ds.readChar();
            }
            s16BitUnits = new String(c16BitUnits);
            resourceBottom = indexes[URES_INDEX_16BIT_TOP] << 2;
        } else {
            s16BitUnits = "\0";
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.