DataInput


DataInput java.io

Java 1.0

This interface defines the methods required for streams that can read Java primitive data types in a machine-independent binary format. It is implemented by DataInputStream and RandomAccessFile . See DataInputStream for more information on the methods.

 public interface  DataInput  {  // Public Instance Methods  boolean  readBoolean  ( ) throws IOException;        byte  readByte  ( ) throws IOException;        char  readChar  ( ) throws IOException;        double  readDouble  ( ) throws IOException;        float  readFloat  ( ) throws IOException;        void  readFully  (byte[ ]  b  ) throws IOException;        void  readFully  (byte[ ]  b  , int  off  , int  len  ) throws IOException;        int  readInt  ( ) throws IOException;        String  readLine  ( ) throws IOException;        long  readLong  ( ) throws IOException;        short  readShort  ( ) throws IOException;        int  readUnsignedByte  ( ) throws IOException;        int  readUnsignedShort  ( ) throws IOException;        String  readUTF  ( ) throws IOException;        int  skipBytes  (int  n  ) throws IOException;   } 

Implementations

DataInputStream , ObjectInput , RandomAccessFile

Passed To

DataInputStream.readUTF( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net