Java Doc for GeneralBase.java in  » 6.0-JDK-Modules » j2me » com » sun » cdc » 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 » 6.0 JDK Modules » j2me » com.sun.cdc.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.OutputStream
      java.io.DataOutputStream
         com.sun.cdc.io.GeneralBase

All known Subclasses:   com.sun.cdc.io.ConnectionBase,
GeneralBase
abstract public class GeneralBase extends DataOutputStream implements DataInput,DataOutput(Code)
Base class for objects that implement the DataInput and DataOutput interfaces. It also behaves like a DataOutputStream so it can be used for UniversalOutputStream
version:
   1.1 2/20/2000



Constructor Summary
public  GeneralBase()
    

Method Summary
public  voidclose()
     Close the stream.
public  voidflush()
     Flush the stream.
public  intread()
     Reads the next byte of data from the input stream.
public  booleanreadBoolean()
     See the general contract of the readBoolean method of DataInput.
public  bytereadByte()
     See the general contract of the readByte method of DataInput.
public  charreadChar()
     See the general contract of the readChar method of DataInput.
public  doublereadDouble()
    
public  floatreadFloat()
    
public  voidreadFully(byte b)
     See the general contract of the readFully method of DataInput.
public  voidreadFully(byte b, int off, int len)
     See the general contract of the readFully method of DataInput.
public  intreadInt()
     See the general contract of the readInt method of DataInput.
public  StringreadLine()
    
public  longreadLong()
     See the general contract of the readLong method of DataInput.
public  shortreadShort()
     See the general contract of the readShort method of DataInput.
public  StringreadUTF()
     See the general contract of the readUTF method of DataInput.
public  intreadUnsignedByte()
     See the general contract of the readUnsignedByte method of DataInput.
public  intreadUnsignedShort()
     See the general contract of the readUnsignedShort method of DataInput.
public  longskip(long n)
     Skips over and discards n bytes of data from this input stream.
public  intskipBytes(int n)
     See the general contract of the skipBytes method of DataInput.

Bytes for this operation are read from the contained input stream.
Parameters:
  n - the number of bytes to be skipped.

public  voidwrite(int b)
     Writes the specified byte (the low eight bits of the argument b) to the underlying output stream.
public  voidwrite(byte b, int off, int len)
     Writes len bytes from the specified byte array starting at offset off to the underlying output stream.


Constructor Detail
GeneralBase
public GeneralBase()(Code)




Method Detail
close
public void close() throws IOException(Code)
Close the stream.



flush
public void flush() throws IOException(Code)
Flush the stream.



read
public int read() throws IOException(Code)
Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.

A subclass must provide an implementation of this method. the next byte of data, or -1 if the end of thestream is reached.
exception:
  IOException - if an I/O error occurs.




readBoolean
public boolean readBoolean() throws IOException(Code)
See the general contract of the readBoolean method of DataInput.

Bytes for this operation are read from the contained input stream. the boolean value read.
exception:
  EOFException - if this input stream has reached the end.




readByte
public byte readByte() throws IOException(Code)
See the general contract of the readByte method of DataInput.

Bytes for this operation are read from the contained input stream. the next byte of this input stream as a signed 8-bitbyte.
exception:
  EOFException - if this input stream has reached the end.
exception:
  IOException - if an I/O error occurs.




readChar
public char readChar() throws IOException(Code)
See the general contract of the readChar method of DataInput.

Bytes for this operation are read from the contained input stream. the next two bytes of this input stream as a Unicodecharacter.
exception:
  EOFException - if this input stream reaches the end beforereading two bytes.
exception:
  IOException - if an I/O error occurs.




readDouble
public double readDouble() throws IOException(Code)
Unsupported function



readFloat
public float readFloat() throws IOException(Code)
Unsupported function



readFully
public void readFully(byte b) throws IOException(Code)
See the general contract of the readFully method of DataInput.

Bytes for this operation are read from the contained input stream.
Parameters:
  b - the buffer into which the data is read.
exception:
  EOFException - if this input stream reaches the end beforereading all the bytes.
exception:
  IOException - if an I/O error occurs.




readFully
public void readFully(byte b, int off, int len) throws IOException(Code)
See the general contract of the readFully method of DataInput.

Bytes for this operation are read from the contained input stream.
Parameters:
  b - the buffer into which the data is read.
Parameters:
  off - the start offset of the data.
Parameters:
  len - the number of bytes to read.
exception:
  EOFException - if this input stream reaches the end beforereading all the bytes.
exception:
  IOException - if an I/O error occurs.




readInt
public int readInt() throws IOException(Code)
See the general contract of the readInt method of DataInput.

Bytes for this operation are read from the contained input stream. the next four bytes of this input stream, interpreted as anint.
exception:
  EOFException - if this input stream reaches the end beforereading four bytes.
exception:
  IOException - if an I/O error occurs.




readLine
public String readLine() throws IOException(Code)
Unsupported function



readLong
public long readLong() throws IOException(Code)
See the general contract of the readLong method of DataInput.

Bytes for this operation are read from the contained input stream. the next eight bytes of this input stream, interpreted as along.
exception:
  EOFException - if this input stream reaches the end beforereading eight bytes.
exception:
  IOException - if an I/O error occurs.




readShort
public short readShort() throws IOException(Code)
See the general contract of the readShort method of DataInput.

Bytes for this operation are read from the contained input stream. the next two bytes of this input stream, interpreted as asigned 16-bit number.
exception:
  EOFException - if this input stream reaches the end beforereading two bytes.
exception:
  IOException - if an I/O error occurs.




readUTF
public String readUTF() throws IOException(Code)
See the general contract of the readUTF method of DataInput.

Bytes for this operation are read from the contained input stream. a Unicode string.
exception:
  EOFException - if this input stream reaches the end beforereading all the bytes.
exception:
  IOException - if an I/O error occurs.
See Also:   java.io.DataInputStream.readUTF(java.io.DataInput)




readUnsignedByte
public int readUnsignedByte() throws IOException(Code)
See the general contract of the readUnsignedByte method of DataInput.

Bytes for this operation are read from the contained input stream. the next byte of this input stream, interpreted as anunsigned 8-bit number.
exception:
  EOFException - if this input stream has reached the end.
exception:
  IOException - if an I/O error occurs.




readUnsignedShort
public int readUnsignedShort() throws IOException(Code)
See the general contract of the readUnsignedShort method of DataInput.

Bytes for this operation are read from the contained input stream. the next two bytes of this input stream, interpreted as anunsigned 16-bit integer.
exception:
  EOFException - if this input stream reaches the end beforereading two bytes.
exception:
  IOException - if an I/O error occurs.




skip
public long skip(long n) throws IOException(Code)
Skips over and discards n bytes of data from this input stream. The skip method may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly 0. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. The actual number of bytes skipped is returned. If n is negative, no bytes are skipped.

The skip method of InputStream creates a byte array and then repeatedly reads into it until n bytes have been read or the end of the stream has been reached. Subclasses are encouraged to provide a more efficient implementation of this method.
Parameters:
  n - the number of bytes to be skipped. the actual number of bytes skipped.
exception:
  IOException - if an I/O error occurs.




skipBytes
public int skipBytes(int n) throws IOException(Code)
See the general contract of the skipBytes method of DataInput.

Bytes for this operation are read from the contained input stream.
Parameters:
  n - the number of bytes to be skipped. the actual number of bytes skipped.
exception:
  IOException - if an I/O error occurs.




write
public void write(int b) throws IOException(Code)
Writes the specified byte (the low eight bits of the argument b) to the underlying output stream. If no exception is thrown, the counter written is incremented by 1.

Implements the write method of OutputStream.
Parameters:
  b - the byte to be written.
exception:
  IOException - if an I/O error occurs.
See Also:   java.io.FilterOutputStream.out




write
public void write(byte b, int off, int len) throws IOException(Code)
Writes len bytes from the specified byte array starting at offset off to the underlying output stream. If no exception is thrown, the counter written is incremented by len.
Parameters:
  b - the data.
Parameters:
  off - the start offset in the data.
Parameters:
  len - the number of bytes to write.
exception:
  IOException - if an I/O error occurs.
See Also:   java.io.FilterOutputStream.out



Fields inherited from java.io.DataOutputStream
protected OutputStream out(Code)(Java Doc)

Methods inherited from java.io.DataOutputStream
public void close() throws IOException(Code)(Java Doc)
public void flush() throws IOException(Code)(Java Doc)
public void write(int b) throws IOException(Code)(Java Doc)
public void write(byte b, int off, int len) throws IOException(Code)(Java Doc)
final public void writeBoolean(boolean v) throws IOException(Code)(Java Doc)
final public void writeByte(int v) throws IOException(Code)(Java Doc)
final public void writeChar(int v) throws IOException(Code)(Java Doc)
final public void writeChars(String s) throws IOException(Code)(Java Doc)
final public void writeDouble(double v) throws IOException(Code)(Java Doc)
final public void writeFloat(float v) throws IOException(Code)(Java Doc)
final public void writeInt(int v) throws IOException(Code)(Java Doc)
final public void writeLong(long v) throws IOException(Code)(Java Doc)
final public void writeShort(int v) throws IOException(Code)(Java Doc)
final public void writeUTF(String str) throws IOException(Code)(Java Doc)

Methods inherited from java.io.OutputStream
public void close() throws IOException(Code)(Java Doc)
public void flush() throws IOException(Code)(Java Doc)
abstract public void write(int b) throws IOException(Code)(Java Doc)
public void write(byte b) throws IOException(Code)(Java Doc)
public void write(byte b, int off, int len) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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