What abstract base classes are used for character streams and for byte streams?
-DozyLa
Java Understanding
Started by DozyLa, Apr 30 2009 02:13 PM
4 replies to this topic
#1
Posted 30 April 2009 - 02:13 PM
|
|
|
#2
Posted 30 April 2009 - 02:31 PM
I don't know Java, sorry, maybe search in google for it? I found this page which says:
All byte stream classes are descended from InputStream and OutputStream.
Byte Streams (The Java™ Tutorials > Essential Classes > Basic I/O)
All byte stream classes are descended from InputStream and OutputStream.
Byte Streams (The Java™ Tutorials > Essential Classes > Basic I/O)
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
#3
Posted 30 April 2009 - 02:50 PM
I did search in Google...it came up with nothing, which was quite annoying.
#4
Posted 30 April 2009 - 02:51 PM
Sorry to hear that. Did the website and page I found was helpful?
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
#5
Posted 30 April 2009 - 11:23 PM
The base abstract classes for reading and writing bytes of data are java.io.InputStream and java.io.OutputStream respectively.
The base abstracts for reading and writing CharSequences, char[]s and their derivatives are java.io.Reader and java.io.Writer.
Use this for looking up the java API:
Java Platform SE 6
To write a string to some io destination could be done as follows:
HTH
The base abstracts for reading and writing CharSequences, char[]s and their derivatives are java.io.Reader and java.io.Writer.
Use this for looking up the java API:
Java Platform SE 6
To write a string to some io destination could be done as follows:
BufferedWriter bW = new BufferedWriter(new FileWriter(new File("blurb.txt")));
bW.write("Curve, Base NPV, Shifted NPV, Pvbp");
bW.newLine();
bW.flush();
bW.close();
HTH


Sign In
Create Account

Back to top









