DataOutput


DataOutput java.io

Java 1.0

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

 public interface  DataOutput  {  // Public Instance Methods  void  write  (byte[ ]  b  ) throws IOException;        void  write  (int  b  ) throws IOException;        void  write  (byte[ ]  b  , int  off  , int  len  ) throws IOException;        void  writeBoolean  (boolean  v  ) throws IOException;        void  writeByte  (int  v  ) throws IOException;        void  writeBytes  (String  s  ) throws IOException;        void  writeChar  (int  v  ) throws IOException;        void  writeChars  (String  s  ) throws IOException;        void  writeDouble  (double  v  ) throws IOException;        void  writeFloat  (float  v  ) throws IOException;        void  writeInt  (int  v  ) throws IOException;        void  writeLong  (long  v  ) throws IOException;        void  writeShort  (int  v  ) throws IOException;        void  writeUTF  (String  str  ) throws IOException;   } 

Implementations

DataOutputStream , ObjectOutput , RandomAccessFile



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