Java Doc for DataInput.java in  » Apache-Harmony-Java-SE » java-package » java » io » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.io.DataInput

All known Subclasses:   java.io.DataInputStream,  java.io.RandomAccessFile,
DataInput
public interface DataInput (Code)
DataInput is an interface which declares methods for reading in typed data from a Stream. Typically, this stream has been written by a class which implements DataOutput. Types that can be read include byte, 16-bit short, 32-bit int, 32-bit float, 64-bit long, 64-bit double, byte strings, and UTF Strings.
See Also:   DataInputStream
See Also:   RandomAccessFile




Method Summary
abstract public  booleanreadBoolean()
     Reads a boolean from this stream.
abstract public  bytereadByte()
     Reads an 8-bit byte value from this stream.
abstract public  charreadChar()
     Reads a 16-bit character value from this stream.
abstract public  doublereadDouble()
     Reads a 64-bit double value from this stream.
abstract public  floatreadFloat()
     Reads a 32-bit float value from this stream.
abstract public  voidreadFully(byte[] buffer)
     Reads bytes from this stream into the byte array buffer.
abstract public  voidreadFully(byte[] buffer, int offset, int count)
     Read bytes from this stream and stores them in byte array buffer starting at offset offset.
abstract public  intreadInt()
     Reads a 32-bit integer value from this stream.
abstract public  StringreadLine()
     Answers a String representing the next line of text available in this BufferedReader.
abstract public  longreadLong()
     Reads a 64-bit long value from this stream.
abstract public  shortreadShort()
     Reads a 16-bit short value from this stream.
abstract public  StringreadUTF()
     Reads a UTF format String from this Stream.
abstract public  intreadUnsignedByte()
     Reads an unsigned 8-bit byte value from this stream and returns it as an int.
abstract public  intreadUnsignedShort()
     Reads a 16-bit unsigned short value from this stream and returns it as an int.
abstract public  intskipBytes(int count)
     Skips count number of bytes in this stream.



Method Detail
readBoolean
abstract public boolean readBoolean() throws IOException(Code)
Reads a boolean from this stream. the next boolean value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeBoolean(boolean)



readByte
abstract public byte readByte() throws IOException(Code)
Reads an 8-bit byte value from this stream. the next byte value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeByte(int)



readChar
abstract public char readChar() throws IOException(Code)
Reads a 16-bit character value from this stream. the next char value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeChar(int)



readDouble
abstract public double readDouble() throws IOException(Code)
Reads a 64-bit double value from this stream. the next double value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeDouble(double)



readFloat
abstract public float readFloat() throws IOException(Code)
Reads a 32-bit float value from this stream. the next float value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeFloat(float)



readFully
abstract public void readFully(byte[] buffer) throws IOException(Code)
Reads bytes from this stream into the byte array buffer. This method will block until buffer.length number of bytes have been read.
Parameters:
  buffer - the buffer to read bytes into
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.write(byte[])
See Also:   DataOutput.write(byte[]intint)



readFully
abstract public void readFully(byte[] buffer, int offset, int count) throws IOException(Code)
Read bytes from this stream and stores them in byte array buffer starting at offset offset. This method blocks until count number of bytes have been read.
Parameters:
  buffer - the byte array in which to store the read bytes.
Parameters:
  offset - the offset in buffer to store the read bytes.
Parameters:
  count - the maximum number of bytes to store in buffer.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.write(byte[])
See Also:   DataOutput.write(byte[]intint)



readInt
abstract public int readInt() throws IOException(Code)
Reads a 32-bit integer value from this stream. the next int value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeInt(int)



readLine
abstract public String readLine() throws IOException(Code)
Answers a String representing the next line of text available in this BufferedReader. A line is represented by 0 or more characters followed by '\n', '\r', "\n\r" or end of stream. The String does not include the newline sequence. the contents of the line or null if no characters were readbefore end of stream.
throws:
  IOException - If a problem occurs reading from this stream.



readLong
abstract public long readLong() throws IOException(Code)
Reads a 64-bit long value from this stream. the next long value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeLong(long)



readShort
abstract public short readShort() throws IOException(Code)
Reads a 16-bit short value from this stream. the next short value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeShort(int)



readUTF
abstract public String readUTF() throws IOException(Code)
Reads a UTF format String from this Stream. the next UTF String from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeUTF(java.lang.String)



readUnsignedByte
abstract public int readUnsignedByte() throws IOException(Code)
Reads an unsigned 8-bit byte value from this stream and returns it as an int. the next unsigned byte value from the source stream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeByte(int)



readUnsignedShort
abstract public int readUnsignedShort() throws IOException(Code)
Reads a 16-bit unsigned short value from this stream and returns it as an int. the next unsigned short value from the sourcestream.
throws:
  IOException - If a problem occurs reading from this stream.
See Also:   DataOutput.writeShort(int)



skipBytes
abstract public int skipBytes(int count) throws IOException(Code)
Skips count number of bytes in this stream. Subsequent read()'s will not return these bytes unless reset() is used.
Parameters:
  count - the number of bytes to skip. the number of bytes actually skipped.
throws:
  IOException - If a problem occurs reading from this stream.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.