Java™ Platform
Standard Ed. 6

Uses of Class
java.io.InputStream

Packages that use InputStream
java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. 
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.awt.color Provides classes for color spaces. 
java.beans Contains classes related to developing beans -- components based on the JavaBeansTM architecture. 
java.beans.beancontext Provides classes and interfaces relating to bean context. 
java.io Provides for system input and output through data streams, serialization and the file system. 
java.lang Provides classes that are fundamental to the design of the Java programming language. 
java.net Provides the classes for implementing networking applications. 
java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations. 
java.security Provides the classes and interfaces for the security framework. 
java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. 
java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
java.util.jar Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. 
java.util.logging Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities. 
java.util.prefs This package allows applications to store and retrieve user and system preference and configuration data. 
java.util.zip Provides classes for reading and writing the standard ZIP and GZIP file formats. 
javax.accessibility Defines a contract between user-interface components and an assistive technology that provides access to those components. 
javax.activation   
javax.crypto Provides the classes and interfaces for cryptographic operations. 
javax.imageio The main package of the Java Image I/O API. 
javax.imageio.stream A package of the Java Image I/O API dealing with low-level I/O from files and streams. 
javax.management.loading Provides the classes which implement advanced dynamic loading. 
javax.print Provides the principal classes and interfaces for the JavaTM Print Service API. 
javax.security.auth.x500 This package contains the classes that should be used to store X500 Principal and X500 Private Crendentials in a Subject
javax.security.cert Provides classes for public key certificates. 
javax.sound.midi Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data. 
javax.sound.midi.spi Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers. 
javax.sound.sampled Provides interfaces and classes for capture, processing, and playback of sampled audio data. 
javax.sound.sampled.spi Supplies abstract classes for service providers to subclass when offering new audio devices, sound file readers and writers, or audio format converters. 
javax.sql Provides the API for server side data source access and processing from the JavaTM programming language. 
javax.sql.rowset Standard interfaces and base classes for JDBC RowSet implementations. 
javax.sql.rowset.serial Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.plaf.synth Synth is a skinnable look and feel in which all painting is delegated. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.text.rtf Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. 
javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers. 
javax.xml.bind Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities. 
javax.xml.bind.helpers JAXB Provider Use Only: Provides partial default implementations for some of the javax.xml.bind interfaces. 
javax.xml.crypto Common classes for XML cryptography. 
javax.xml.crypto.dsig Classes for generating and validating XML digital signatures. 
javax.xml.parsers Provides classes allowing the processing of XML documents. 
javax.xml.soap Provides the API for creating and building SOAP messages. 
javax.xml.stream   
javax.xml.transform.stream This package implements stream- and URI- specific transformation APIs. 
org.ietf.jgss This package presents a framework that allows application developers to make use of security services like authentication, data integrity and data confidentiality from a variety of underlying security mechanisms like Kerberos, using a unified API. 
org.omg.CORBA.portable Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB. 
org.w3c.dom.ls   
org.xml.sax This package provides the core SAX APIs. 
 

Uses of InputStream in java.applet
 

Methods in java.applet that return InputStream
 InputStream AppletContext.getStream(String key)
          Returns the stream to which specified key is associated within this applet context.
 

Methods in java.applet with parameters of type InputStream
 void AppletContext.setStream(String key, InputStream stream)
          Associates the specified stream with the specified key in this applet context.
 

Uses of InputStream in java.awt
 

Methods in java.awt with parameters of type InputStream
static Font Font.createFont(int fontFormat, InputStream fontStream)
          Returns a new Font using the specified font type and input data.
 

Uses of InputStream in java.awt.color
 

Methods in java.awt.color with parameters of type InputStream
static ICC_Profile ICC_Profile.getInstance(InputStream s)
          Constructs an ICC_Profile corresponding to the data in an InputStream.
 

Uses of InputStream in java.beans
 

Constructors in java.beans with parameters of type InputStream
XMLDecoder(InputStream in)
          Creates a new input stream for reading archives created by the XMLEncoder class.
XMLDecoder(InputStream in, Object owner)
          Creates a new input stream for reading archives created by the XMLEncoder class.
XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener)
          Creates a new input stream for reading archives created by the XMLEncoder class.
XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener, ClassLoader cl)
          Creates a new input stream for reading archives created by the XMLEncoder class.
 

Uses of InputStream in java.beans.beancontext
 

Methods in java.beans.beancontext that return InputStream
 InputStream BeanContextSupport.getResourceAsStream(String name, BeanContextChild bcc)
           
 InputStream BeanContext.getResourceAsStream(String name, BeanContextChild bcc)
          Analagous to java.lang.ClassLoader.getResourceAsStream(), this method allows a BeanContext implementation to interpose behavior between the child Component and underlying ClassLoader.
 

Uses of InputStream in java.io
 

Subclasses of InputStream in java.io
 class BufferedInputStream
          A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods.
 class ByteArrayInputStream
          A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream.
 class DataInputStream
          A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
 class FileInputStream
          A FileInputStream obtains input bytes from a file in a file system.
 class FilterInputStream
          A FilterInputStream contains some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
 class LineNumberInputStream
          Deprecated. This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers.
 class ObjectInputStream
          An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.
 class PipedInputStream
          A piped input stream should be connected to a piped output stream; the piped input stream then provides whatever data bytes are written to the piped output stream.
 class PushbackInputStream
          A PushbackInputStream adds functionality to another input stream, namely the ability to "push back" or "unread" one byte.
 class SequenceInputStream
          A SequenceInputStream represents the logical concatenation of other input streams.
 class StringBufferInputStream
          Deprecated. This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the StringReader class.
 

Fields in java.io declared as InputStream
protected  InputStream FilterInputStream.in
          The input stream to be filtered.
 

Constructors in java.io with parameters of type InputStream
BufferedInputStream(InputStream in)
          Creates a BufferedInputStream and saves its argument, the input stream in, for later use.
BufferedInputStream(InputStream in, int size)
          Creates a BufferedInputStream with the specified buffer size, and saves its argument, the input stream in, for later use.
DataInputStream(InputStream in)
          Creates a DataInputStream that uses the specified underlying InputStream.
FilterInputStream(InputStream in)
          Creates a FilterInputStream by assigning the argument in to the field this.in so as to remember it for later use.
InputStreamReader(InputStream in)
          Creates an InputStreamReader that uses the default charset.
InputStreamReader(InputStream in, Charset cs)
          Creates an InputStreamReader that uses the given charset.
InputStreamReader(InputStream in, CharsetDecoder dec)
          Creates an InputStreamReader that uses the given charset decoder.
InputStreamReader(InputStream in, String charsetName)
          Creates an InputStreamReader that uses the named charset.
LineNumberInputStream(InputStream in)
          Deprecated. Constructs a newline number input stream that reads its input from the specified input stream.
ObjectInputStream(InputStream in)
          Creates an ObjectInputStream that reads from the specified InputStream.
PushbackInputStream(InputStream in)
          Creates a PushbackInputStream and saves its argument, the input stream in, for later use.
PushbackInputStream(InputStream in, int size)
          Creates a PushbackInputStream with a pushback buffer of the specified size, and saves its argument, the input stream in, for later use.
SequenceInputStream(InputStream s1, InputStream s2)
          Initializes a newly created SequenceInputStream by remembering the two arguments, which will be read in order, first s1 and then s2, to provide the bytes to be read from this SequenceInputStream.
StreamTokenizer(InputStream is)
          Deprecated. As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:
   Reader r = new BufferedReader(new InputStreamReader(is));
   StreamTokenizer st = new StreamTokenizer(r);
 
 

Constructor parameters in java.io with type arguments of type InputStream
SequenceInputStream(Enumeration<? extends InputStream> e)
          Initializes a newly created SequenceInputStream by remembering the argument, which must be an Enumeration that produces objects whose run-time type is InputStream.
 

Uses of InputStream in java.lang
 

Fields in java.lang declared as InputStream
static InputStream System.in
          The "standard" input stream.
 

Methods in java.lang that return InputStream
abstract  InputStream Process.getErrorStream()
          Gets the error stream of the subprocess.
abstract  InputStream Process.getInputStream()
          Gets the input stream of the subprocess.
 InputStream Runtime.getLocalizedInputStream(InputStream in)
          Deprecated. As of JDK 1.1, the preferred way to translate a byte stream in the local encoding into a character stream in Unicode is via the InputStreamReader and BufferedReader classes.
 InputStream ClassLoader.getResourceAsStream(String name)
          Returns an input stream for reading the specified resource.
 InputStream Class.getResourceAsStream(String name)
          Finds a resource with a given name.
static InputStream ClassLoader.getSystemResourceAsStream(String name)
          Open for reading, a resource of the specified name from the search path used to load classes.
 

Methods in java.lang with parameters of type InputStream
 InputStream Runtime.getLocalizedInputStream(InputStream in)
          Deprecated. As of JDK 1.1, the preferred way to translate a byte stream in the local encoding into a character stream in Unicode is via the InputStreamReader and BufferedReader classes.
static void System.setIn(InputStream in)
          Reassigns the "standard" input stream.
 

Uses of InputStream in java.net
 

Methods in java.net that return InputStream
abstract  InputStream CacheResponse.getBody()
          Returns the response body as an InputStream.
 InputStream HttpURLConnection.getErrorStream()
          Returns the error stream if the connection failed but the server sent useful data nonetheless.
protected abstract  InputStream SocketImpl.getInputStream()
          Returns an input stream for this socket.
 InputStream Socket.getInputStream()
          Returns an input stream for this socket.
 InputStream URLConnection.getInputStream()
          Returns an input stream that reads from this open connection.
 InputStream URL.openStream()
          Opens a connection to this URL and returns an InputStream for reading from that connection.
 

Methods in java.net with parameters of type InputStream
static String URLConnection.guessContentTypeFromStream(InputStream is)
          Tries to determine the type of an input stream based on the characters at the beginning of the input stream.
 

Uses of InputStream in java.nio.channels
 

Methods in java.nio.channels that return InputStream
static InputStream Channels.newInputStream(ReadableByteChannel ch)
          Constructs a stream that reads bytes from the given channel.
 

Methods in java.nio.channels with parameters of type InputStream
static ReadableByteChannel Channels.newChannel(InputStream in)
          Constructs a channel that reads bytes from the given stream.
 

Uses of InputStream in java.security
 

Subclasses of InputStream in java.security
 class DigestInputStream
          A transparent stream that updates the associated message digest using the bits going through the stream.
 

Methods in java.security with parameters of type InputStream
 void Certificate.decode(InputStream stream)
          Deprecated. Decodes a certificate from an input stream.
abstract  void KeyStoreSpi.engineLoad(InputStream stream, char[] password)
          Loads the keystore from the given input stream.
 void Provider.load(InputStream inStream)
          Reads a property list (key and element pairs) from the input stream.
 void KeyStore.load(InputStream stream, char[] password)
          Loads this KeyStore from the given input stream.
 

Constructors in java.security with parameters of type InputStream
DigestInputStream(InputStream stream, MessageDigest digest)
          Creates a digest input stream, using the specified input stream and message digest.
 

Uses of InputStream in java.security.cert
 

Methods in java.security.cert with parameters of type InputStream
abstract  Certificate CertificateFactorySpi.engineGenerateCertificate(InputStream inStream)
          Generates a certificate object and initializes it with the data read from the input stream inStream.
abstract  Collection<? extends Certificate> CertificateFactorySpi.engineGenerateCertificates(InputStream inStream)
          Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
 CertPath CertificateFactorySpi.engineGenerateCertPath(InputStream inStream)
          Generates a CertPath object and initializes it with the data read from the InputStream inStream.
 CertPath CertificateFactorySpi.engineGenerateCertPath(InputStream inStream, String encoding)
          Generates a CertPath object and initializes it with the data read from the InputStream inStream.
abstract  CRL CertificateFactorySpi.engineGenerateCRL(InputStream inStream)
          Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
abstract  Collection<? extends CRL> CertificateFactorySpi.engineGenerateCRLs(InputStream inStream)
          Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
 Certificate CertificateFactory.generateCertificate(InputStream inStream)
          Generates a certificate object and initializes it with the data read from the input stream inStream.
 Collection<? extends Certificate> CertificateFactory.generateCertificates(InputStream inStream)
          Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
 CertPath CertificateFactory.generateCertPath(InputStream inStream)
          Generates a CertPath object and initializes it with the data read from the InputStream inStream.
 CertPath CertificateFactory.generateCertPath(InputStream inStream, String encoding)
          Generates a CertPath object and initializes it with the data read from the InputStream inStream.
 CRL CertificateFactory.generateCRL(InputStream inStream)
          Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
 Collection<? extends CRL> CertificateFactory.generateCRLs(InputStream inStream)
          Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
 

Uses of InputStream in java.sql
 

Methods in java.sql that return InputStream
 InputStream Clob.getAsciiStream()
          Retrieves the CLOB value designated by this Clob object as an ascii stream.
 InputStream ResultSet.getAsciiStream(int columnIndex)
          Retrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters.
 InputStream ResultSet.getAsciiStream(String columnLabel)
          Retrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters.
 InputStream SQLXML.getBinaryStream()
          Retrieves the XML value designated by this SQLXML instance as a stream.
 InputStream Blob.getBinaryStream()
          Retrieves the BLOB value designated by this Blob instance as a stream.
 InputStream ResultSet.getBinaryStream(int columnIndex)
          Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes.
 InputStream Blob.getBinaryStream(long pos, long length)
          Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.
 InputStream ResultSet.getBinaryStream(String columnLabel)
          Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes.
 InputStream ResultSet.getUnicodeStream(int columnIndex)
          Deprecated. use getCharacterStream in place of getUnicodeStream
 InputStream ResultSet.getUnicodeStream(String columnLabel)
          Deprecated. use getCharacterStream instead
 InputStream SQLInput.readAsciiStream()
          Reads the next attribute in the stream and returns it as a stream of ASCII characters.
 InputStream SQLInput.readBinaryStream()
          Reads the next attribute in the stream and returns it as a stream of uninterpreted bytes.
 

Methods in java.sql with parameters of type InputStream
 void PreparedStatement.setAsciiStream(int parameterIndex, InputStream x)
          Sets the designated parameter to the given input stream.
 void PreparedStatement.setAsciiStream(int parameterIndex, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void PreparedStatement.setAsciiStream(int parameterIndex, InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void CallableStatement.setAsciiStream(String parameterName, InputStream x)
          Sets the designated parameter to the given input stream.
 void CallableStatement.setAsciiStream(String parameterName, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void CallableStatement.setAsciiStream(String parameterName, InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void PreparedStatement.setBinaryStream(int parameterIndex, InputStream x)
          Sets the designated parameter to the given input stream.
 void PreparedStatement.setBinaryStream(int parameterIndex, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void PreparedStatement.setBinaryStream(int parameterIndex, InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void CallableStatement.setBinaryStream(String parameterName, InputStream x)
          Sets the designated parameter to the given input stream.
 void CallableStatement.setBinaryStream(String parameterName, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void CallableStatement.setBinaryStream(String parameterName, InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void PreparedStatement.setBlob(int parameterIndex, InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void PreparedStatement.setBlob(int parameterIndex, InputStream inputStream, long length)
          Sets the designated parameter to a InputStream object.
 void CallableStatement.setBlob(String parameterName, InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void CallableStatement.setBlob(String parameterName, InputStream inputStream, long length)
          Sets the designated parameter to a InputStream object.
 void PreparedStatement.setUnicodeStream(int parameterIndex, InputStream x, int length)
          Deprecated.  
 void ResultSet.updateAsciiStream(int columnIndex, InputStream x)
          Updates the designated column with an ascii stream value.
 void ResultSet.updateAsciiStream(int columnIndex, InputStream x, int length)
          Updates the designated column with an ascii stream value, which will have the specified number of bytes.
 void ResultSet.updateAsciiStream(int columnIndex, InputStream x, long length)
          Updates the designated column with an ascii stream value, which will have the specified number of bytes.
 void ResultSet.updateAsciiStream(String columnLabel, InputStream x)
          Updates the designated column with an ascii stream value.
 void ResultSet.updateAsciiStream(String columnLabel, InputStream x, int length)
          Updates the designated column with an ascii stream value, which will have the specified number of bytes.
 void ResultSet.updateAsciiStream(String columnLabel, InputStream x, long length)
          Updates the designated column with an ascii stream value, which will have the specified number of bytes.
 void ResultSet.updateBinaryStream(int columnIndex, InputStream x)
          Updates the designated column with a binary stream value.
 void ResultSet.updateBinaryStream(int columnIndex, InputStream x, int length)
          Updates the designated column with a binary stream value, which will have the specified number of bytes.
 void ResultSet.updateBinaryStream(int columnIndex, InputStream x, long length)
          Updates the designated column with a binary stream value, which will have the specified number of bytes.
 void ResultSet.updateBinaryStream(String columnLabel, InputStream x)
          Updates the designated column with a binary stream value.
 void ResultSet.updateBinaryStream(String columnLabel, InputStream x, int length)
          Updates the designated column with a binary stream value, which will have the specified number of bytes.
 void ResultSet.updateBinaryStream(String columnLabel, InputStream x, long length)
          Updates the designated column with a binary stream value, which will have the specified number of bytes.
 void ResultSet.updateBlob(int columnIndex, InputStream inputStream)
          Updates the designated column using the given input stream.
 void ResultSet.updateBlob(int columnIndex, InputStream inputStream, long length)
          Updates the designated column using the given input stream, which will have the specified number of bytes.
 void ResultSet.updateBlob(String columnLabel, InputStream inputStream)
          Updates the designated column using the given input stream.
 void ResultSet.updateBlob(String columnLabel, InputStream inputStream, long length)
          Updates the designated column using the given input stream, which will have the specified number of bytes.
 void SQLOutput.writeAsciiStream(InputStream x)
          Writes the next attribute to the stream as a stream of ASCII characters.
 void SQLOutput.writeBinaryStream(InputStream x)
          Writes the next attribute to the stream as a stream of uninterpreted bytes.
 

Uses of InputStream in java.util
 

Methods in java.util with parameters of type InputStream
 void Properties.load(InputStream inStream)
          Reads a property list (key and element pairs) from the input byte stream.
 void Properties.loadFromXML(InputStream in)
          Loads all of the properties represented by the XML document on the specified input stream into this properties table.
 

Constructors in java.util with parameters of type InputStream
PropertyResourceBundle(InputStream stream)
          Creates a property resource bundle from an InputStream.
Scanner(InputStream source)
          Constructs a new Scanner that produces values scanned from the specified input stream.
Scanner(InputStream source, String charsetName)
          Constructs a new Scanner that produces values scanned from the specified input stream.
 

Uses of InputStream in java.util.jar
 

Subclasses of InputStream in java.util.jar
 class JarInputStream
          The JarInputStream class is used to read the contents of a JAR file from any input stream.
 

Methods in java.util.jar that return InputStream
 InputStream JarFile.getInputStream(ZipEntry ze)
          Returns an input stream for reading the contents of the specified zip file entry.
 

Methods in java.util.jar with parameters of type InputStream
 void Manifest.read(InputStream is)
          Reads the Manifest from the specified InputStream.
 void Pack200.Unpacker.unpack(InputStream in, JarOutputStream out)
          Read a Pack200 archive, and write the encoded JAR to a JarOutputStream.
 

Constructors in java.util.jar with parameters of type InputStream
JarInputStream(InputStream in)
          Creates a new JarInputStream and reads the optional manifest.
JarInputStream(InputStream in, boolean verify)
          Creates a new JarInputStream and reads the optional manifest.
Manifest(InputStream is)
          Constructs a new Manifest from the specified input stream.
 

Uses of InputStream in java.util.logging
 

Methods in java.util.logging with parameters of type InputStream
 void LogManager.readConfiguration(InputStream ins)
          Reinitialize the logging properties and reread the logging configuration from the given stream, which should be in java.util.Properties format.
 

Uses of InputStream in java.util.prefs
 

Methods in java.util.prefs with parameters of type InputStream
static void Preferences.importPreferences(InputStream is)
          Imports all of the preferences represented by the XML document on the specified input stream.
 

Uses of InputStream in java.util.zip
 

Subclasses of InputStream in java.util.zip
 class CheckedInputStream
          An input stream that also maintains a checksum of the data being read.
 class DeflaterInputStream
          Implements an input stream filter for compressing data in the "deflate" compression format.
 class GZIPInputStream
          This class implements a stream filter for reading compressed data in the GZIP file format.
 class InflaterInputStream
          This class implements a stream filter for uncompressing data in the "deflate" compression format.
 class ZipInputStream
          This class implements an input stream filter for reading files in the ZIP file format.
 

Methods in java.util.zip that return InputStream
 InputStream ZipFile.getInputStream(ZipEntry entry)
          Returns an input stream for reading the contents of the specified zip file entry.
 

Constructors in java.util.zip with parameters of type InputStream
CheckedInputStream(InputStream in, Checksum cksum)
          Creates an input stream using the specified Checksum.
DeflaterInputStream(InputStream in)
          Creates a new input stream with a default compressor and buffer size.
DeflaterInputStream(InputStream in, Deflater defl)
          Creates a new input stream with the specified compressor and a default buffer size.
DeflaterInputStream(InputStream in, Deflater defl, int bufLen)
          Creates a new input stream with the specified compressor and buffer size.
GZIPInputStream(InputStream in)
          Creates a new input stream with a default buffer size.
GZIPInputStream(InputStream in, int size)
          Creates a new input stream with the specified buffer size.
InflaterInputStream(InputStream in)
          Creates a new input stream with a default decompressor and buffer size.
InflaterInputStream(InputStream in, Inflater inf)
          Creates a new input stream with the specified decompressor and a default buffer size.
InflaterInputStream(InputStream in, Inflater inf, int size)
          Creates a new input stream with the specified decompressor and buffer size.
ZipInputStream(InputStream in)
          Creates a new ZIP input stream.
 

Uses of InputStream in javax.accessibility
 

Methods in javax.accessibility that return InputStream
 InputStream AccessibleStreamable.getStream(DataFlavor flavor)
          Returns an InputStream for a DataFlavor
 

Uses of InputStream in javax.activation
 

Methods in javax.activation that return InputStream
 InputStream URLDataSource.getInputStream()
          The getInputStream method from the URL.
 InputStream FileDataSource.getInputStream()
          This method will return an InputStream representing the the data and will throw an IOException if it can not do so.
 InputStream DataSource.getInputStream()
          This method returns an InputStream representing the data and throws the appropriate exception if it can not do so.
 InputStream DataHandler.getInputStream()
          Get the InputStream for this object.
 

Constructors in javax.activation with parameters of type InputStream
MailcapCommandMap(InputStream is)
          Constructor that allows the caller to specify an InputStream containing a mailcap file.
MimetypesFileTypeMap(InputStream is)
          Construct a MimetypesFileTypeMap with programmatic entries added from the InputStream.
 

Uses of InputStream in javax.crypto
 

Subclasses of InputStream in javax.crypto
 class CipherInputStream
          A CipherInputStream is composed of an InputStream and a Cipher so that read() methods return data that are read in from the underlying InputStream but have been additionally processed by the Cipher.
 

Constructors in javax.crypto with parameters of type InputStream
CipherInputStream(InputStream is)
          Constructs a CipherInputStream from an InputStream without specifying a Cipher.
CipherInputStream(InputStream is, Cipher c)
          Constructs a CipherInputStream from an InputStream and a Cipher.
 

Uses of InputStream in javax.imageio
 

Methods in javax.imageio with parameters of type InputStream
static BufferedImage ImageIO.read(InputStream input)
          Returns a BufferedImage as the result of decoding a supplied InputStream with an ImageReader chosen automatically from among those currently registered.
 

Uses of InputStream in javax.imageio.stream
 

Constructors in javax.imageio.stream with parameters of type InputStream
FileCacheImageInputStream(InputStream stream, File cacheDir)
          Constructs a FileCacheImageInputStream that will read from a given InputStream.
MemoryCacheImageInputStream(InputStream stream)
          Constructs a MemoryCacheImageInputStream that will read from a given InputStream.
 

Uses of InputStream in javax.management.loading
 

Methods in javax.management.loading that return InputStream
 InputStream MLetMBean.getResourceAsStream(String name)
          Returns an input stream for reading the specified resource.
 

Uses of InputStream in javax.print
 

Methods in javax.print that return InputStream
 InputStream SimpleDoc.getStreamForBytes()
          Obtains an input stream for extracting byte print data from this doc.
 InputStream Doc.getStreamForBytes()
          Obtains an input stream for extracting byte print data from this doc.
 

Uses of InputStream in javax.security.auth.x500
 

Constructors in javax.security.auth.x500 with parameters of type InputStream
X500Principal(InputStream is)
          Creates an X500Principal from an InputStream containing the distinguished name in ASN.1 DER encoded form.
 

Uses of InputStream in javax.security.cert
 

Methods in javax.security.cert with parameters of type InputStream
static X509Certificate X509Certificate.getInstance(InputStream inStream)
          Instantiates an X509Certificate object, and initializes it with the data read from the input stream inStream.
 

Uses of InputStream in javax.sound.midi
 

Methods in javax.sound.midi with parameters of type InputStream
static MidiFileFormat MidiSystem.getMidiFileFormat(InputStream stream)
          Obtains the MIDI file format of the data in the specified input stream.
static Sequence MidiSystem.getSequence(InputStream stream)
          Obtains a MIDI sequence from the specified input stream.
static Soundbank MidiSystem.getSoundbank(InputStream stream)
          Constructs a MIDI sound bank by reading it from the specified stream.
 void Sequencer.setSequence(InputStream stream)
          Sets the current sequence on which the sequencer operates.
 

Uses of InputStream in javax.sound.midi.spi
 

Methods in javax.sound.midi.spi with parameters of type InputStream
abstract  MidiFileFormat MidiFileReader.getMidiFileFormat(InputStream stream)
          Obtains the MIDI file format of the input stream provided.
abstract  Sequence MidiFileReader.getSequence(InputStream stream)
          Obtains a MIDI sequence from the input stream provided.
abstract  Soundbank SoundbankReader.getSoundbank(InputStream stream)
          Obtains a soundbank object from the InputStream provided.
 

Uses of InputStream in javax.sound.sampled
 

Subclasses of InputStream in javax.sound.sampled
 class AudioInputStream
          An audio input stream is an input stream with a specified audio format and length.
 

Methods in javax.sound.sampled with parameters of type InputStream
static AudioFileFormat AudioSystem.getAudioFileFormat(InputStream stream)
          Obtains the audio file format of the provided input stream.
static AudioInputStream AudioSystem.getAudioInputStream(InputStream stream)
          Obtains an audio input stream from the provided input stream.
 

Constructors in javax.sound.sampled with parameters of type InputStream
AudioInputStream(InputStream stream, AudioFormat format, long length)
          Constructs an audio input stream that has the requested format and length in sample frames, using audio data from the specified input stream.
 

Uses of InputStream in javax.sound.sampled.spi
 

Methods in javax.sound.sampled.spi with parameters of type InputStream
abstract  AudioFileFormat AudioFileReader.getAudioFileFormat(InputStream stream)
          Obtains the audio file format of the input stream provided.
abstract  AudioInputStream AudioFileReader.getAudioInputStream(InputStream stream)
          Obtains an audio input stream from the input stream provided.
 

Uses of InputStream in javax.sql
 

Methods in javax.sql with parameters of type InputStream
 void RowSet.setAsciiStream(int parameterIndex, InputStream x)
          Sets the designated parameter in this RowSet object's command to the given input stream.
 void RowSet.setAsciiStream(int parameterIndex, InputStream x, int length)
          Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value.
 void RowSet.setAsciiStream(String parameterName, InputStream x)
          Sets the designated parameter to the given input stream.
 void RowSet.setAsciiStream(String parameterName, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void RowSet.setBinaryStream(int parameterIndex, InputStream x)
          Sets the designated parameter in this RowSet object's command to the given input stream.
 void RowSet.setBinaryStream(int parameterIndex, InputStream x, int length)
          Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value.
 void RowSet.setBinaryStream(String parameterName, InputStream x)
          Sets the designated parameter to the given input stream.
 void RowSet.setBinaryStream(String parameterName, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void RowSet.setBlob(int parameterIndex, InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void RowSet.setBlob(int parameterIndex, InputStream inputStream, long length)
          Sets the designated parameter to a InputStream object.
 void RowSet.setBlob(String parameterName, InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void RowSet.setBlob(String parameterName, InputStream inputStream, long length)
          Sets the designated parameter to a InputStream object.
 

Uses of InputStream in javax.sql.rowset
 

Fields in javax.sql.rowset declared as InputStream
protected  InputStream BaseRowSet.asciiStream
          The InputStream object that will be returned by the method getAsciiStream, which is specified in the ResultSet interface.
protected  InputStream BaseRowSet.binaryStream
          The InputStream object that will be returned by the method getBinaryStream, which is specified in the ResultSet interface.
protected  InputStream BaseRowSet.unicodeStream
          The InputStream object that will be returned by the method getUnicodeStream, which is specified in the ResultSet interface.
 

Methods in javax.sql.rowset with parameters of type InputStream
 void WebRowSet.readXml(InputStream iStream)
          Reads a stream based XML input to populate this WebRowSet object.
 void BaseRowSet.setAsciiStream(int parameterIndex, InputStream x)
          Sets the designated parameter in this RowSet object's command to the given input stream.
 void BaseRowSet.setAsciiStream(int parameterIndex, InputStream x, int length)
          Sets the designated parameter to the given java.io.InputStream object, which will have the specified number of bytes.
 void BaseRowSet.setAsciiStream(String parameterName, InputStream x)
          Sets the designated parameter to the given input stream.
 void BaseRowSet.setAsciiStream(String parameterName, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void BaseRowSet.setBinaryStream(int parameterIndex, InputStream x)
          Sets the designated parameter in this RowSet object's command to the given input stream.
 void BaseRowSet.setBinaryStream(int parameterIndex, InputStream x, int length)
          Sets the designated parameter to the given java.io.InputStream object, which will have the specified number of bytes.
 void BaseRowSet.setBinaryStream(String parameterName, InputStream x)
          Sets the designated parameter to the given input stream.
 void BaseRowSet.setBinaryStream(String parameterName, InputStream x, int length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void BaseRowSet.setBlob(int parameterIndex, InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void BaseRowSet.setBlob(int parameterIndex, InputStream inputStream, long length)
          Sets the designated parameter to a InputStream object.
 void BaseRowSet.setBlob(String parameterName, InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void BaseRowSet.setBlob(String parameterName, InputStream inputStream, long length)
          Sets the designated parameter to a InputStream object.
 void BaseRowSet.setUnicodeStream(int parameterIndex, InputStream x, int length)
          Deprecated. getCharacterStream should be used in its place
 

Uses of InputStream in javax.sql.rowset.serial
 

Methods in javax.sql.rowset.serial that return InputStream
 InputStream SerialClob.getAsciiStream()
          Retrieves the CLOB value designated by this SerialClob object as an ascii stream.
 InputStream SerialBlob.getBinaryStream()
          Returns this SerialBlob object as an input stream.
 InputStream SerialBlob.getBinaryStream(long pos, long length)
          Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.
 InputStream SQLInputImpl.readAsciiStream()
          Returns the next attribute in this SQLInputImpl object as a stream of ASCII characters.
 InputStream SQLInputImpl.readBinaryStream()
          Returns the next attribute in this SQLInputImpl object as a stream of uninterpreted bytes.
 

Methods in javax.sql.rowset.serial with parameters of type InputStream
 void SQLOutputImpl.writeAsciiStream(InputStream x)
          Writes a stream of ASCII characters to this SQLOutputImpl object.
 void SQLOutputImpl.writeBinaryStream(InputStream x)
          Writes a stream of uninterpreted bytes to this SQLOutputImpl object.
 

Uses of InputStream in javax.swing
 

Subclasses of InputStream in javax.swing
 class ProgressMonitorInputStream
          Monitors the progress of reading from some InputStream.
 

Methods in javax.swing that return InputStream
protected  InputStream JEditorPane.getStream(URL page)
          Fetches a stream for the given URL, which is about to be loaded by the setPage method.
 

Methods in javax.swing with parameters of type InputStream
 void JEditorPane.read(InputStream in, Object desc)
          This method initializes from a stream.
 

Constructors in javax.swing with parameters of type InputStream
ProgressMonitorInputStream(Component parentComponent, Object message, InputStream in)
          Constructs an object to monitor the progress of an input stream.
 

Uses of InputStream in javax.swing.plaf.synth
 

Methods in javax.swing.plaf.synth with parameters of type InputStream
 void SynthLookAndFeel.load(InputStream input, Class<?> resourceBase)
          Loads the set of SynthStyles that will be used by this SynthLookAndFeel.
 

Uses of InputStream in javax.swing.text
 

Methods in javax.swing.text with parameters of type InputStream
 void DefaultEditorKit.read(InputStream in, Document doc, int pos)
          Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
abstract  void EditorKit.read(InputStream in, Document doc, int pos)
          Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
 

Uses of InputStream in javax.swing.text.rtf
 

Methods in javax.swing.text.rtf with parameters of type InputStream
 void RTFEditorKit.read(InputStream in, Document doc, int pos)
          Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.
 

Uses of InputStream in javax.tools
 

Methods in javax.tools that return InputStream
 InputStream SimpleJavaFileObject.openInputStream()
          This implementation always throws UnsupportedOperationException.
 InputStream ForwardingFileObject.openInputStream()
           
 InputStream FileObject.openInputStream()
          Gets an InputStream for this file object.
 

Methods in javax.tools with parameters of type InputStream
 int Tool.run(InputStream in, OutputStream out, OutputStream err, String... arguments)
          Run the tool with the given I/O channels and arguments.
 

Uses of InputStream in javax.xml.bind
 

Methods in javax.xml.bind with parameters of type InputStream
 Object Unmarshaller.unmarshal(InputStream is)
          Unmarshal XML data from the specified InputStream and return the resulting content tree.
 

Uses of InputStream in javax.xml.bind.helpers
 

Methods in javax.xml.bind.helpers with parameters of type InputStream
 Object AbstractUnmarshallerImpl.unmarshal(InputStream is)
           
 

Uses of InputStream in javax.xml.crypto
 

Methods in javax.xml.crypto that return InputStream
 InputStream OctetStreamData.getOctetStream()
          Returns the input stream of this OctetStreamData.
 

Constructors in javax.xml.crypto with parameters of type InputStream
OctetStreamData(InputStream octetStream)
          Creates a new OctetStreamData.
OctetStreamData(InputStream octetStream, String uri, String mimeType)
          Creates a new OctetStreamData.
 

Uses of InputStream in javax.xml.crypto.dsig
 

Methods in javax.xml.crypto.dsig that return InputStream
 InputStream SignedInfo.getCanonicalizedData()
          Returns the canonicalized signed info bytes after a signing or validation operation.
 InputStream Reference.getDigestInputStream()
          Returns the pre-digested input stream, if reference caching is enabled.
 

Uses of InputStream in javax.xml.parsers
 

Methods in javax.xml.parsers with parameters of type InputStream
 Document DocumentBuilder.parse(InputStream is)
          Parse the content of the given InputStream as an XML document and return a new DOM Document object.
 void SAXParser.parse(InputStream is, DefaultHandler dh)
          Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
 void SAXParser.parse(InputStream is, DefaultHandler dh, String systemId)
          Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
 void SAXParser.parse(InputStream is, HandlerBase hb)
          Parse the content of the given InputStream instance as XML using the specified HandlerBase.
 void SAXParser.parse(InputStream is, HandlerBase hb, String systemId)
          Parse the content of the given InputStream instance as XML using the specified HandlerBase.
 Document DocumentBuilder.parse(InputStream is, String systemId)
          Parse the content of the given InputStream as an XML document and return a new DOM Document object.
 

Uses of InputStream in javax.xml.soap
 

Methods in javax.xml.soap that return InputStream
abstract  InputStream AttachmentPart.getBase64Content()
          Returns an InputStream which can be used to obtain the content of AttachmentPart as Base64 encoded character data, this method would base64 encode the raw bytes of the attachment and return.
abstract  InputStream AttachmentPart.getRawContent()
          Gets the content of this AttachmentPart object as an InputStream as if a call had been made to getContent and no DataContentHandler had been registered for the content-type of this AttachmentPart.
 

Methods in javax.xml.soap with parameters of type InputStream
abstract  SOAPMessage MessageFactory.createMessage(MimeHeaders headers, InputStream in)
          Internalizes the contents of the given InputStream object into a new SOAPMessage object and returns the SOAPMessage object.
abstract  void AttachmentPart.setBase64Content(InputStream content, String contentType)
          Sets the content of this attachment part from the Base64 source InputStream and sets the value of the Content-Type header to the value contained in contentType, This method would first decode the base64 input and write the resulting raw bytes to the attachment.
abstract  void AttachmentPart.setRawContent(InputStream content, String contentType)
          Sets the content of this attachment part to that contained by the InputStream content and sets the value of the Content-Type header to the value contained in contentType.
 

Uses of InputStream in javax.xml.stream
 

Methods in javax.xml.stream with parameters of type InputStream
abstract  XMLEventReader XMLInputFactory.createXMLEventReader(InputStream stream)
          Create a new XMLEventReader from a java.io.InputStream
abstract  XMLEventReader XMLInputFactory.createXMLEventReader(InputStream stream, String encoding)
          Create a new XMLEventReader from a java.io.InputStream
abstract  XMLEventReader XMLInputFactory.createXMLEventReader(String systemId, InputStream stream)
          Create a new XMLEventReader from a java.io.InputStream
abstract  XMLStreamReader XMLInputFactory.createXMLStreamReader(InputStream stream)
          Create a new XMLStreamReader from a java.io.InputStream
abstract  XMLStreamReader XMLInputFactory.createXMLStreamReader(InputStream stream, String encoding)
          Create a new XMLStreamReader from a java.io.InputStream
abstract  XMLStreamReader XMLInputFactory.createXMLStreamReader(String systemId, InputStream stream)
          Create a new XMLStreamReader from a java.io.InputStream
 

Uses of InputStream in javax.xml.transform.stream
 

Methods in javax.xml.transform.stream that return InputStream
 InputStream StreamSource.getInputStream()
          Get the byte stream that was set with setByteStream.
 

Methods in javax.xml.transform.stream with parameters of type InputStream
 void StreamSource.setInputStream(InputStream inputStream)
          Set the byte stream to be used as input.
 

Constructors in javax.xml.transform.stream with parameters of type InputStream
StreamSource(InputStream inputStream)
          Construct a StreamSource from a byte stream.
StreamSource(InputStream inputStream, String systemId)
          Construct a StreamSource from a byte stream.
 

Uses of InputStream in org.ietf.jgss
 

Methods in org.ietf.jgss with parameters of type InputStream
 void GSSContext.acceptSecContext(InputStream inStream, OutputStream outStream)
          Called by the context acceptor to process a token from the peer using streams.
 void GSSContext.getMIC(InputStream inStream, OutputStream outStream, MessageProp msgProp)
          Uses streams to produce a token containing a cryptographic MIC for the supplied message, for transfer to the peer application.
 int GSSContext.initSecContext(InputStream inStream, OutputStream outStream)
          Called by the context initiator to start the context creation phase and process any tokens generated by the peer's acceptSecContext method using streams.
 void GSSContext.unwrap(InputStream inStream, OutputStream outStream, MessageProp msgProp)
          Uses streams to process tokens generated by the wrap method on the other side of the context.
 void GSSContext.verifyMIC(InputStream tokStream, InputStream msgStream, MessageProp msgProp)
          Uses streams to verify the cryptographic MIC, contained in the token parameter, over the supplied message.
 void GSSContext.wrap(InputStream inStream, OutputStream outStream, MessageProp msgProp)
          Applies per-message security services over the established security context using streams.
 

Constructors in org.ietf.jgss with parameters of type InputStream
Oid(InputStream derOid)
          Creates an Oid object from its ASN.1 DER encoding.
 

Uses of InputStream in org.omg.CORBA.portable
 

Subclasses of InputStream in org.omg.CORBA.portable
 class InputStream
          InputStream is the Java API for reading IDL types from CDR marshal streams.
 

Uses of InputStream in org.w3c.dom.ls
 

Methods in org.w3c.dom.ls that return InputStream
 InputStream LSInput.getByteStream()
          An attribute of a language and binding dependent type that represents a stream of bytes.
 

Methods in org.w3c.dom.ls with parameters of type InputStream
 void LSInput.setByteStream(InputStream byteStream)
          An attribute of a language and binding dependent type that represents a stream of bytes.
 

Uses of InputStream in org.xml.sax
 

Methods in org.xml.sax that return InputStream
 InputStream InputSource.getByteStream()
          Get the byte stream for this input source.
 

Methods in org.xml.sax with parameters of type InputStream
 void InputSource.setByteStream(InputStream byteStream)
          Set the byte stream for this input source.
 

Constructors in org.xml.sax with parameters of type InputStream
InputSource(InputStream byteStream)
          Create a new input source with a byte stream.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.