IT. Expert System.

Android Reference

DataInput


java.io

Interface DataInput

    • Method Summary

      Methods
      Modifier and Type Method and Description
      boolean readBoolean()
      Reads a boolean.
      byte readByte()
      Reads an 8-bit byte value.
      char readChar()
      Reads a big-endian 16-bit character value.
      double readDouble()
      Reads a big-endian 64-bit double value.
      float readFloat()
      Reads a big-endian 32-bit float value.
      void readFully(byte[] dst)
      Equivalent to readFully(dst, 0, dst.length);.
      void readFully(byte[] dst, int offset, int byteCount)
      Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset.
      int readInt()
      Reads a big-endian 32-bit integer value.
      String readLine()
      Returns a string containing the next line of text available from this stream.
      long readLong()
      Reads a big-endian 64-bit long value.
      short readShort()
      Reads a big-endian 16-bit short value.
      int readUnsignedByte()
      Reads an unsigned 8-bit byte value and returns it as an int.
      int readUnsignedShort()
      Reads a big-endian 16-bit unsigned short value and returns it as an int.
      String readUTF()
      Reads a string encoded with modified UTF-8.
      int skipBytes(int count)
      Skips count number of bytes.
    • Method Detail

      • readChar

        char readChar()
                      throws IOException
        Reads a big-endian 16-bit character value.
        Returns:
        the next char value.
        Throws:
        EOFException - if the end of the input is reached before the read request can be satisfied.
        IOException - if an I/O error occurs while reading.
        See Also:
        DataOutput.writeChar(int)
      • readFully

        void readFully(byte[] dst)
                       throws IOException
        Equivalent to readFully(dst, 0, dst.length);.
        Throws:
        IOException
      • readFully

        void readFully(byte[] dst,
                     int offset,
                     int byteCount)
                       throws IOException
        Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset. If byteCount is zero, then this method returns without reading any bytes. Otherwise, this method blocks until byteCount bytes have been read. If insufficient bytes are available, EOFException is thrown. If an I/O error occurs, IOException is thrown. When an exception is thrown, some bytes may have been consumed from the stream and written into the array.
        Parameters:
        dst - the byte array into which the data is read.
        offset - the offset in dst at which to store the bytes.
        byteCount - the number of bytes to read.
        Throws:
        EOFException - if the end of the source stream is reached before enough bytes have been read.
        IndexOutOfBoundsException - if offset < 0 or byteCount < 0, or offset + byteCount > dst.length.
        IOException - if a problem occurs while reading from this stream.
        NullPointerException - if dst is null.
      • readInt

        int readInt()
                    throws IOException
        Reads a big-endian 32-bit integer value.
        Returns:
        the next int value.
        Throws:
        EOFException - if the end of the input is reached before the read request can be satisfied.
        IOException - if an I/O error occurs while reading.
        See Also:
        DataOutput.writeInt(int)
      • readLine

        String readLine()
                        throws IOException
        Returns a string containing the next line of text available from this stream. A line is made of zero or more characters followed by '\n', '\r', "\r\n" or the end of the stream. The string does not include the newline sequence.
        Returns:
        the contents of the line or null if no characters have been read before the end of the stream.
        Throws:
        EOFException - if the end of the input is reached before the read request can be satisfied.
        IOException - if an I/O error occurs while reading.
      • readShort

        short readShort()
                        throws IOException
        Reads a big-endian 16-bit short value.
        Returns:
        the next short value.
        Throws:
        EOFException - if the end of the input is reached before the read request can be satisfied.
        IOException - if an I/O error occurs while reading.
        See Also:
        DataOutput.writeShort(int)
      • readUnsignedByte

        int readUnsignedByte()
                             throws IOException
        Reads an unsigned 8-bit byte value and returns it as an int.
        Returns:
        the next unsigned byte value.
        Throws:
        EOFException - if the end of the input is reached before the read request can be satisfied.
        IOException - if an I/O error occurs while reading.
        See Also:
        DataOutput.writeByte(int)
      • readUnsignedShort

        int readUnsignedShort()
                              throws IOException
        Reads a big-endian 16-bit unsigned short value and returns it as an int.
        Returns:
        the next unsigned short value.
        Throws:
        EOFException - if the end of the input is reached before the read request can be satisfied.
        IOException - if an I/O error occurs while reading.
        See Also:
        DataOutput.writeShort(int)
      • skipBytes

        int skipBytes(int count)
                      throws IOException
        Skips count number of bytes. This method will not throw an EOFException if the end of the input is reached before count bytes where skipped.
        Parameters:
        count - the number of bytes to skip.
        Returns:
        the number of bytes actually skipped.
        Throws:
        IOException - if a problem occurs during skipping.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2808 / . Delta: 0.02977 с