InputStream Class

Package: java.io

InputStream is an abstract class from which all stream input classes are derived. The most commonly used input stream classes are BufferedInputStream, FileInputStream, and DataInputStream. You can use any of these classes whenever an InputStream is called for.

CrossRef.eps Because InputStream is an abstract class, you can’t create instances of it. Therefore, I won’t cover its constructors and methods here. For more information, see BufferedInputStream, DataInputStream, and FileInputStream. And for more information about what an abstract class is, see Abstract Class in Part 2.

Get Java For Dummies Quick Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.