Uses of Class
java.io.InputStream
Package
Description
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for color spaces.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
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.
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Service-provider classes for the
java.nio.file
package.Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
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.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
This package allows applications to store and retrieve user and system
preference and configuration data.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
Provides the classes and interfaces for cryptographic
operations.
The main package of the Java Image I/O API.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Provides the classes which implement advanced dynamic
loading.
Provides classes for the secure socket package.
Provides the principal classes and interfaces for the Java Print
Service API.
This package contains the classes that should be used to store
X500 Principal and X500 Private Credentials in a
Subject.
Provides classes for public key certificates.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Supplies interfaces for service providers to implement when offering new MIDI
devices, MIDI file readers and writers, or sound bank readers.
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
Supplies abstract classes for service providers to subclass when offering new
audio devices, sound file readers and writers, or audio format converters.
Provides the API for server side data source access and processing from
the Java programming language.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides a class (
RTFEditorKit
) for creating Rich-Text-Format text
editors.Provides interfaces for tools which can be invoked from a program,
for example, compilers.
Provides the classes for implementing
XML Catalogs OASIS Standard V1.1, 7 October 2005.
Common classes for XML cryptography.
Classes for generating and validating XML digital
signatures.
Provides the classes for processing XML documents with a SAX (Simple API for XML)
parser or a DOM (Document Object Model) Document builder.
Defines interfaces and classes for the Streaming API for XML (StAX).
Provides stream and URI specific transformation classes.
This package provides classes to create events and control Flight Recorder.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
Provides implementation support for building JShell execution engines.
Defines the Service Provider Interface for pluggable JShell execution engines.
Provides a mechanism to launch an instance of a Java shell tool.
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.
Provides interfaces for DOM Level 3 Load and Save.
Provides the interfaces for the Simple API for XML (SAX).
-
Uses of InputStream in com.sun.net.httpserver
Modifier and TypeMethodDescriptionabstract InputStream
HttpExchange.getRequestBody()
Returns a stream from which the request body can be read.Modifier and TypeMethodDescriptionabstract void
HttpExchange.setStreams(InputStream i, OutputStream o)
Used by Filters to wrap either (or both) of this exchange'sInputStream
andOutputStream
, with the given filtered streams so that subsequent calls toHttpExchange.getRequestBody()
will return the givenInputStream
, and calls toHttpExchange.getResponseBody()
will return the givenOutputStream
. -
Uses of InputStream in java.applet
Modifier and TypeMethodDescriptionDeprecated.Returns the stream to which specified key is associated within this applet context.Modifier and TypeMethodDescriptionvoid
AppletContext.setStream(String key, InputStream stream)
Deprecated.Associates the specified stream with the specified key in this applet context. -
Uses of InputStream in java.awt
Modifier and TypeMethodDescriptionstatic Font
Font.createFont(int fontFormat, InputStream fontStream)
Returns a newFont
using the specified font type and input data.static Font[]
Font.createFonts(InputStream fontStream)
Returns a new array ofFont
decoded from the specified stream. -
Uses of InputStream in java.awt.color
Modifier and TypeMethodDescriptionstatic ICC_Profile
ICC_Profile.getInstance(InputStream s)
Constructs anICC_Profile
corresponding to the data in anInputStream
. -
Uses of InputStream in java.beans
ModifierConstructorDescriptionXMLDecoder(InputStream in)
Creates a new input stream for reading archives created by theXMLEncoder
class.XMLDecoder(InputStream in, Object owner)
Creates a new input stream for reading archives created by theXMLEncoder
class.XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener)
Creates a new input stream for reading archives created by theXMLEncoder
class.XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener, ClassLoader cl)
Creates a new input stream for reading archives created by theXMLEncoder
class. -
Uses of InputStream in java.beans.beancontext
Modifier and TypeMethodDescriptionBeanContext.getResourceAsStream(String name, BeanContextChild bcc)
Analagous tojava.lang.ClassLoader.getResourceAsStream()
, this method allows aBeanContext
implementation to interpose behavior between the childComponent
and underlyingClassLoader
.BeanContextSupport.getResourceAsStream(String name, BeanContextChild bcc)
-
Uses of InputStream in java.io
Modifier and TypeClassDescriptionclass
ABufferedInputStream
adds functionality to another input stream-namely, the ability to buffer the input and to support themark
andreset
methods.class
AByteArrayInputStream
contains an internal buffer that contains bytes that may be read from the stream.class
A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.class
AFileInputStream
obtains input bytes from a file in a file system.class
AFilterInputStream
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
Deprecated.This class incorrectly assumes that bytes adequately represent characters.class
An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.class
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
APushbackInputStream
adds functionality to another input stream, namely the ability to "push back" or "unread" bytes, by storing pushed-back bytes in an internal buffer.class
ASequenceInputStream
represents the logical concatenation of other input streams.class
Deprecated.This class does not properly convert characters into bytes.Modifier and TypeFieldDescriptionprotected InputStream
FilterInputStream.in
The input stream to be filtered.Modifier and TypeMethodDescriptionstatic InputStream
InputStream.nullInputStream()
Returns a newInputStream
that reads no bytes.ModifierConstructorDescriptionCreates aBufferedInputStream
and saves its argument, the input streamin
, for later use.BufferedInputStream(InputStream in, int size)
Creates aBufferedInputStream
with the specified buffer size, and saves its argument, the input streamin
, for later use.Creates a DataInputStream that uses the specified underlying InputStream.protected
Creates aFilterInputStream
by assigning the argumentin
to the fieldthis.in
so as to remember it for later use.Creates an InputStreamReader that uses the default charset.InputStreamReader(InputStream in, String charsetName)
Creates an InputStreamReader that uses the named 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.Deprecated.Constructs a newline number input stream that reads its input from the specified input stream.Creates an ObjectInputStream that reads from the specified InputStream.Creates aPushbackInputStream
with a 1-byte pushback buffer, and saves its argument, the input streamin
, for later use.PushbackInputStream(InputStream in, int size)
Creates aPushbackInputStream
with a pushback buffer of the specifiedsize
, and saves its argument, the input streamin
, for later use.SequenceInputStream(InputStream s1, InputStream s2)
Initializes a newly createdSequenceInputStream
by remembering the two arguments, which will be read in order, firsts1
and thens2
, to provide the bytes to be read from thisSequenceInputStream
.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:ModifierConstructorDescriptionSequenceInputStream(Enumeration<? extends InputStream> e)
Initializes a newly createdSequenceInputStream
by remembering the argument, which must be anEnumeration
that produces objects whose run-time type isInputStream
. -
Uses of InputStream in java.lang
Modifier and TypeMethodDescriptionabstract InputStream
Process.getErrorStream()
Returns the input stream connected to the error output of the process.abstract InputStream
Process.getInputStream()
Returns the input stream connected to the normal output of the process.Class.getResourceAsStream(String name)
Finds a resource with a given name.ClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource.Module.getResourceAsStream(String name)
Returns an input stream for reading a resource in this module.static InputStream
ClassLoader.getSystemResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path used to load classes.Modifier and TypeMethodDescriptionstatic void
System.setIn(InputStream in)
Reassigns the "standard" input stream. -
Uses of InputStream in java.lang.module
Modifier and TypeMethodDescriptiondefault Optional<InputStream>
Opens a resource, returning an input stream to read the resource in the module.Modifier and TypeMethodDescriptionstatic ModuleDescriptor
ModuleDescriptor.read(InputStream in)
Reads the binary form of a module declaration from an input stream as a module descriptor.static ModuleDescriptor
ModuleDescriptor.read(InputStream in, Supplier<Set<String>> packageFinder)
Reads the binary form of a module declaration from an input stream as a module descriptor. -
Uses of InputStream in java.net
Modifier and TypeMethodDescriptionabstract InputStream
CacheResponse.getBody()
Returns the response body as an InputStream.HttpURLConnection.getErrorStream()
Returns the error stream if the connection failed but the server sent useful data nonetheless.Socket.getInputStream()
Returns an input stream for this socket.protected abstract InputStream
SocketImpl.getInputStream()
Returns an input stream for this socket.URLConnection.getInputStream()
Returns an input stream that reads from this open connection.URLClassLoader.getResourceAsStream(String name)
Returns an input stream for reading the specified resource.URL.openStream()
Opens a connection to thisURL
and returns anInputStream
for reading from that connection.Modifier and TypeMethodDescriptionstatic 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.net.http
Modifier and TypeMethodDescriptionstatic HttpResponse.BodyHandler<InputStream>
HttpResponse.BodyHandlers.ofInputStream()
Returns aBodyHandler<InputStream>
that returns aBodySubscriber
<InputStream>
obtained fromBodySubscribers.ofInputStream
.HttpResponse.BodySubscribers.ofInputStream()
Returns aBodySubscriber
which streams the response body as anInputStream
.Modifier and TypeMethodDescriptionstatic HttpRequest.BodyPublisher
HttpRequest.BodyPublishers.ofInputStream(Supplier<? extends InputStream> streamSupplier)
A request body publisher that reads its data from anInputStream
. -
Uses of InputStream in java.nio.channels
Modifier and TypeMethodDescriptionstatic InputStream
Channels.newInputStream(AsynchronousByteChannel ch)
Constructs a stream that reads bytes from the given channel.static InputStream
Channels.newInputStream(ReadableByteChannel ch)
Constructs a stream that reads bytes from the given channel.Modifier and TypeMethodDescriptionstatic ReadableByteChannel
Channels.newChannel(InputStream in)
Constructs a channel that reads bytes from the given stream. -
Uses of InputStream in java.nio.file
Modifier and TypeMethodDescriptionstatic InputStream
Files.newInputStream(Path path, OpenOption... options)
Opens a file, returning an input stream to read from the file.Modifier and TypeMethodDescriptionstatic long
Files.copy(InputStream in, Path target, CopyOption... options)
Copies all bytes from an input stream to a file. -
Uses of InputStream in java.nio.file.spi
Modifier and TypeMethodDescriptionFileSystemProvider.newInputStream(Path path, OpenOption... options)
Opens a file, returning an input stream to read from the file. -
Uses of InputStream in java.security
Modifier and TypeClassDescriptionclass
A transparent stream that updates the associated message digest using the bits going through the stream.Modifier and TypeMethodDescriptionvoid
Certificate.decode(InputStream stream)
Deprecated, for removal: This API element is subject to removal in a future version.Decodes a certificate from an input stream.abstract void
KeyStoreSpi.engineLoad(InputStream stream, char[] password)
Loads the keystore from the given input stream.boolean
KeyStoreSpi.engineProbe(InputStream stream)
Probes the specified input stream to determine whether it contains a keystore that is supported by this implementation, or not.void
KeyStore.load(InputStream stream, char[] password)
Loads this KeyStore from the given input stream.void
Provider.load(InputStream inStream)
Reads a property list (key and element pairs) from the input stream.ModifierConstructorDescriptionDigestInputStream(InputStream stream, MessageDigest digest)
Creates a digest input stream, using the specified input stream and message digest. -
Uses of InputStream in java.security.cert
Modifier and TypeMethodDescriptionabstract Certificate
CertificateFactorySpi.engineGenerateCertificate(InputStream inStream)
Generates a certificate object and initializes it with the data read from the input streaminStream
.abstract Collection<? extends Certificate>
CertificateFactorySpi.engineGenerateCertificates(InputStream inStream)
Returns a (possibly empty) collection view of the certificates read from the given input streaminStream
.CertificateFactorySpi.engineGenerateCertPath(InputStream inStream)
Generates aCertPath
object and initializes it with the data read from theInputStream
inStream.CertificateFactorySpi.engineGenerateCertPath(InputStream inStream, String encoding)
Generates aCertPath
object and initializes it with the data read from theInputStream
inStream.abstract CRL
CertificateFactorySpi.engineGenerateCRL(InputStream inStream)
Generates a certificate revocation list (CRL) object and initializes it with the data read from the input streaminStream
.abstract Collection<? extends CRL>
CertificateFactorySpi.engineGenerateCRLs(InputStream inStream)
Returns a (possibly empty) collection view of the CRLs read from the given input streaminStream
.CertificateFactory.generateCertificate(InputStream inStream)
Generates a certificate object and initializes it with the data read from the input streaminStream
.Collection<? extends Certificate>
CertificateFactory.generateCertificates(InputStream inStream)
Returns a (possibly empty) collection view of the certificates read from the given input streaminStream
.CertificateFactory.generateCertPath(InputStream inStream)
Generates aCertPath
object and initializes it with the data read from theInputStream
inStream.CertificateFactory.generateCertPath(InputStream inStream, String encoding)
Generates aCertPath
object and initializes it with the data read from theInputStream
inStream.CertificateFactory.generateCRL(InputStream inStream)
Generates a certificate revocation list (CRL) object and initializes it with the data read from the input streaminStream
.Collection<? extends CRL>
CertificateFactory.generateCRLs(InputStream inStream)
Returns a (possibly empty) collection view of the CRLs read from the given input streaminStream
. -
Uses of InputStream in java.sql
Modifier and TypeMethodDescriptionClob.getAsciiStream()
Retrieves theCLOB
value designated by thisClob
object as an ascii stream.ResultSet.getAsciiStream(int columnIndex)
Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of ASCII characters.ResultSet.getAsciiStream(String columnLabel)
Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of ASCII characters.Blob.getBinaryStream()
Retrieves theBLOB
value designated by thisBlob
instance as a stream.Blob.getBinaryStream(long pos, long length)
Returns anInputStream
object that contains a partialBlob
value, starting with the byte specified by pos, which is length bytes in length.ResultSet.getBinaryStream(int columnIndex)
Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of uninterpreted bytes.ResultSet.getBinaryStream(String columnLabel)
Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of uninterpretedbyte
s.SQLXML.getBinaryStream()
Retrieves the XML value designated by this SQLXML instance as a stream.ResultSet.getUnicodeStream(int columnIndex)
Deprecated.usegetCharacterStream
in place ofgetUnicodeStream
ResultSet.getUnicodeStream(String columnLabel)
Deprecated.usegetCharacterStream
insteadSQLInput.readAsciiStream()
Reads the next attribute in the stream and returns it as a stream of ASCII characters.SQLInput.readBinaryStream()
Reads the next attribute in the stream and returns it as a stream of uninterpreted bytes.Modifier and TypeMethodDescriptionvoid
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.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.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.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.setBlob(String parameterName, InputStream inputStream)
Sets the designated parameter to anInputStream
object.void
CallableStatement.setBlob(String parameterName, InputStream inputStream, long length)
Sets the designated parameter to anInputStream
object.void
PreparedStatement.setBlob(int parameterIndex, InputStream inputStream)
Sets the designated parameter to aInputStream
object.void
PreparedStatement.setBlob(int parameterIndex, InputStream inputStream, long length)
Sets the designated parameter to aInputStream
object.void
PreparedStatement.setUnicodeStream(int parameterIndex, InputStream x, int length)
Deprecated.UsesetCharacterStream
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
Modifier and TypeMethodDescriptionBase64.Decoder.wrap(InputStream is)
Returns an input stream for decodingBase64
encoded byte stream.Modifier and TypeMethodDescriptionvoid
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.Base64.Decoder.wrap(InputStream is)
Returns an input stream for decodingBase64
encoded byte stream.ModifierConstructorDescriptionPropertyResourceBundle(InputStream stream)
Creates a property resource bundle from anInputStream
.Scanner(InputStream source)
Constructs a newScanner
that produces values scanned from the specified input stream.Scanner(InputStream source, String charsetName)
Constructs a newScanner
that produces values scanned from the specified input stream.Scanner(InputStream source, Charset charset)
Constructs a newScanner
that produces values scanned from the specified input stream. -
Uses of InputStream in java.util.jar
Modifier and TypeClassDescriptionclass
TheJarInputStream
class is used to read the contents of a JAR file from any input stream.Modifier and TypeMethodDescriptionJarFile.getInputStream(ZipEntry ze)
Returns an input stream for reading the contents of the specified zip file entry.Modifier and TypeMethodDescriptionvoid
Manifest.read(InputStream is)
Reads the Manifest from the specified InputStream.ModifierConstructorDescriptionCreates a newJarInputStream
and reads the optional manifest.JarInputStream(InputStream in, boolean verify)
Creates a newJarInputStream
and reads the optional manifest.Manifest(InputStream is)
Constructs a new Manifest from the specified input stream. -
Uses of InputStream in java.util.logging
Modifier and TypeMethodDescriptionvoid
LogManager.readConfiguration(InputStream ins)
Reads and initializes the logging configuration from the given input stream.void
LogManager.updateConfiguration(InputStream ins, Function<String,BiFunction<String,String,String>> mapper)
Updates the logging configuration. -
Uses of InputStream in java.util.prefs
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeClassDescriptionclass
An input stream that also maintains a checksum of the data being read.class
Implements an input stream filter for compressing data in the "deflate" compression format.class
This class implements a stream filter for reading compressed data in the GZIP file format.class
This class implements a stream filter for uncompressing data in the "deflate" compression format.class
This class implements an input stream filter for reading files in the ZIP file format.Modifier and TypeMethodDescriptionZipFile.getInputStream(ZipEntry entry)
Returns an input stream for reading the contents of the specified zip file entry.ModifierConstructorDescriptionCheckedInputStream(InputStream in, Checksum cksum)
Creates an input stream using the specified Checksum.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.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.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.Creates a new ZIP input stream.ZipInputStream(InputStream in, Charset charset)
Creates a new ZIP input stream. -
Uses of InputStream in javax.accessibility
Modifier and TypeMethodDescriptionAccessibleStreamable.getStream(DataFlavor flavor)
Returns anInputStream
for aDataFlavor
. -
Uses of InputStream in javax.crypto
Modifier and TypeClassDescriptionclass
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.ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionstatic BufferedImage
ImageIO.read(InputStream input)
Returns aBufferedImage
as the result of decoding a suppliedInputStream
with anImageReader
chosen automatically from among those currently registered. -
Uses of InputStream in javax.imageio.stream
ModifierConstructorDescriptionFileCacheImageInputStream(InputStream stream, File cacheDir)
Constructs aFileCacheImageInputStream
that will read from a givenInputStream
.MemoryCacheImageInputStream(InputStream stream)
Constructs aMemoryCacheImageInputStream
that will read from a givenInputStream
. -
Uses of InputStream in javax.management.loading
Modifier and TypeMethodDescriptionMLetMBean.getResourceAsStream(String name)
Returns an input stream for reading the specified resource. -
Uses of InputStream in javax.net.ssl
Modifier and TypeMethodDescriptionSSLSocketFactory.createSocket(Socket s, InputStream consumed, boolean autoClose)
Creates a server modeSocket
layered over an existing connected socket, and is able to read data which has already been consumed/removed from theSocket
's underlyingInputStream
. -
Uses of InputStream in javax.print
Modifier and TypeMethodDescriptionDoc.getStreamForBytes()
Obtains an input stream for extracting byte print data from this doc.SimpleDoc.getStreamForBytes()
Obtains an input stream for extracting byte print data from this doc. -
Uses of InputStream in javax.security.auth.x500
ModifierConstructorDescriptionX500Principal(InputStream is)
Creates anX500Principal
from anInputStream
containing the distinguished name in ASN.1 DER encoded form. -
Uses of InputStream in javax.security.cert
Modifier and TypeMethodDescriptionstatic X509Certificate
X509Certificate.getInstance(InputStream inStream)
Deprecated, for removal: This API element is subject to removal in a future version.Instantiates an X509Certificate object, and initializes it with the data read from the input streaminStream
. -
Uses of InputStream in javax.sound.midi
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionabstract 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 theInputStream
provided. -
Uses of InputStream in javax.sound.sampled
Modifier and TypeClassDescriptionclass
An audio input stream is an input stream with a specified audio format and length.Modifier and TypeMethodDescriptionstatic 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.ModifierConstructorDescriptionAudioInputStream(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
Modifier and TypeMethodDescriptionabstract 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
Modifier and TypeMethodDescriptionvoid
RowSet.setAsciiStream(int parameterIndex, InputStream x)
Sets the designated parameter in thisRowSet
object's command to the given input stream.void
RowSet.setAsciiStream(int parameterIndex, InputStream x, int length)
Sets the designated parameter in thisRowSet
object's command to the givenjava.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 thisRowSet
object's command to the given input stream.void
RowSet.setBinaryStream(int parameterIndex, InputStream x, int length)
Sets the designated parameter in thisRowSet
object's command to the givenjava.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 aInputStream
object.void
RowSet.setBlob(int parameterIndex, InputStream inputStream, long length)
Sets the designated parameter to aInputStream
object.void
RowSet.setBlob(String parameterName, InputStream inputStream)
Sets the designated parameter to aInputStream
object.void
RowSet.setBlob(String parameterName, InputStream inputStream, long length)
Sets the designated parameter to aInputStream
object. -
Uses of InputStream in javax.sql.rowset
Modifier and TypeFieldDescriptionprotected InputStream
BaseRowSet.asciiStream
TheInputStream
object that will be returned by the methodgetAsciiStream
, which is specified in theResultSet
interface.protected InputStream
BaseRowSet.binaryStream
TheInputStream
object that will be returned by the methodgetBinaryStream
, which is specified in theResultSet
interface.protected InputStream
BaseRowSet.unicodeStream
TheInputStream
object that will be returned by the methodgetUnicodeStream
, which is specified in theResultSet
interface.Modifier and TypeMethodDescriptionvoid
WebRowSet.readXml(InputStream iStream)
Reads a stream based XML input to populate thisWebRowSet
object.void
BaseRowSet.setAsciiStream(int parameterIndex, InputStream x)
Sets the designated parameter in thisRowSet
object's command to the given input stream.void
BaseRowSet.setAsciiStream(int parameterIndex, InputStream x, int length)
Sets the designated parameter to the givenjava.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 thisRowSet
object's command to the given input stream.void
BaseRowSet.setBinaryStream(int parameterIndex, InputStream x, int length)
Sets the designated parameter to the givenjava.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 aInputStream
object.void
BaseRowSet.setBlob(int parameterIndex, InputStream inputStream, long length)
Sets the designated parameter to aInputStream
object.void
BaseRowSet.setBlob(String parameterName, InputStream inputStream)
Sets the designated parameter to aInputStream
object.void
BaseRowSet.setBlob(String parameterName, InputStream inputStream, long length)
Sets the designated parameter to aInputStream
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
Modifier and TypeMethodDescriptionSerialClob.getAsciiStream()
Retrieves theCLOB
value designated by thisSerialClob
object as an ascii stream.SerialBlob.getBinaryStream()
Returns thisSerialBlob
object as an input stream.SerialBlob.getBinaryStream(long pos, long length)
Returns anInputStream
object that contains a partialBlob
value, starting with the byte specified by pos, which is length bytes in length.SQLInputImpl.readAsciiStream()
Returns the next attribute in thisSQLInputImpl
object as a stream of ASCII characters.SQLInputImpl.readBinaryStream()
Returns the next attribute in thisSQLInputImpl
object as a stream of uninterpreted bytes.Modifier and TypeMethodDescriptionvoid
SQLOutputImpl.writeAsciiStream(InputStream x)
Writes a stream of ASCII characters to thisSQLOutputImpl
object.void
SQLOutputImpl.writeBinaryStream(InputStream x)
Writes a stream of uninterpreted bytes to thisSQLOutputImpl
object. -
Uses of InputStream in javax.swing
Modifier and TypeClassDescriptionclass
Monitors the progress of reading from some InputStream.Modifier and TypeMethodDescriptionprotected InputStream
Fetches a stream for the given URL, which is about to be loaded by thesetPage
method.Modifier and TypeMethodDescriptionvoid
JEditorPane.read(InputStream in, Object desc)
This method initializes from a stream.ModifierConstructorDescriptionProgressMonitorInputStream(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
Modifier and TypeMethodDescriptionvoid
SynthLookAndFeel.load(InputStream input, Class<?> resourceBase)
Loads the set ofSynthStyle
s that will be used by thisSynthLookAndFeel
. -
Uses of InputStream in javax.swing.text
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionFileObject.openInputStream()
Returns an InputStream for this file object.ForwardingFileObject.openInputStream()
SimpleJavaFileObject.openInputStream()
This implementation always throws UnsupportedOperationException.Modifier and TypeMethodDescriptionint
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.catalog
Modifier and TypeMethodDescriptionCatalogResolver.resolveEntity(String publicId, String systemId, String baseUri, String namespace)
ImplementsXMLResolver
. -
Uses of InputStream in javax.xml.crypto
Modifier and TypeMethodDescriptionOctetStreamData.getOctetStream()
Returns the input stream of thisOctetStreamData
.ModifierConstructorDescriptionOctetStreamData(InputStream octetStream)
Creates a newOctetStreamData
.OctetStreamData(InputStream octetStream, String uri, String mimeType)
Creates a newOctetStreamData
. -
Uses of InputStream in javax.xml.crypto.dsig
Modifier and TypeMethodDescriptionSignedInfo.getCanonicalizedData()
Returns the canonicalized signed info bytes after a signing or validation operation.Reference.getDigestInputStream()
Returns the pre-digested input stream, if reference caching is enabled. -
Uses of InputStream in javax.xml.parsers
Modifier and TypeMethodDescriptionDocumentBuilder.parse(InputStream is)
Parse the content of the givenInputStream
as an XML document and return a new DOMDocument
object.DocumentBuilder.parse(InputStream is, String systemId)
Parse the content of the givenInputStream
as an XML document and return a new DOMDocument
object.void
SAXParser.parse(InputStream is, HandlerBase hb)
Parse the content of the givenInputStream
instance as XML using the specifiedHandlerBase
.void
SAXParser.parse(InputStream is, HandlerBase hb, String systemId)
Parse the content of the givenInputStream
instance as XML using the specifiedHandlerBase
.void
SAXParser.parse(InputStream is, DefaultHandler dh)
Parse the content of the givenInputStream
instance as XML using the specifiedDefaultHandler
.void
SAXParser.parse(InputStream is, DefaultHandler dh, String systemId)
Parse the content of the givenInputStream
instance as XML using the specifiedDefaultHandler
. -
Uses of InputStream in javax.xml.stream
Modifier and TypeMethodDescriptionabstract XMLEventReader
XMLInputFactory.createXMLEventReader(InputStream stream)
Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReader
XMLInputFactory.createXMLEventReader(InputStream stream, String encoding)
Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReader
XMLInputFactory.createXMLEventReader(String systemId, InputStream stream)
Create a new XMLEventReader from a java.io.InputStreamabstract 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
Modifier and TypeMethodDescriptionStreamSource.getInputStream()
Get the byte stream that was set with setByteStream.Modifier and TypeMethodDescriptionvoid
StreamSource.setInputStream(InputStream inputStream)
Set the byte stream to be used as input.ModifierConstructorDescriptionStreamSource(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 jdk.jfr
Modifier and TypeMethodDescriptionCreates a data stream for a specified interval. -
Uses of InputStream in jdk.jshell
Modifier and TypeMethodDescriptionJShell.Builder.in(InputStream in)
Sets the input for the running evaluation (it'sSystem.in
). -
Uses of InputStream in jdk.jshell.execution
Modifier and TypeMethodDescriptionstatic void
Util.forwardExecutionControlAndIO(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String,Consumer<OutputStream>> outputStreamMap, Map<String,Consumer<InputStream>> inputStreamMap)
Forward commands from the input to the specifiedExecutionControl
instance, then responses back on the output.static ExecutionControl
Util.remoteInputOutput(InputStream input, OutputStream output, Map<String,OutputStream> outputStreamMap, Map<String,InputStream> inputStreamMap, BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory)
Creates an ExecutionControl for given packetized input and output. -
Uses of InputStream in jdk.jshell.spi
-
Uses of InputStream in jdk.jshell.tool
Modifier and TypeMethodDescriptionJavaShellToolBuilder.in(InputStream cmdIn, InputStream userIn)
Set the input channels. -
Uses of InputStream in org.ietf.jgss
Modifier and TypeMethodDescriptionvoid
GSSContext.acceptSecContext(InputStream inStream, OutputStream outStream)
Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.getMIC(InputStream inStream, OutputStream outStream, MessageProp msgProp)
Deprecated.The stream-based methods have been removed from RFC 8353.int
GSSContext.initSecContext(InputStream inStream, OutputStream outStream)
Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.unwrap(InputStream inStream, OutputStream outStream, MessageProp msgProp)
Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.verifyMIC(InputStream tokStream, InputStream msgStream, MessageProp msgProp)
Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.wrap(InputStream inStream, OutputStream outStream, MessageProp msgProp)
Deprecated.The stream-based methods have been removed from RFC 8353.ModifierConstructorDescriptionOid(InputStream derOid)
Creates an Oid object from its ASN.1 DER encoding. -
Uses of InputStream in org.w3c.dom.ls
Modifier and TypeMethodDescriptionLSInput.getByteStream()
An attribute of a language and binding dependent type that represents a stream of bytes.Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionInputSource.getByteStream()
Get the byte stream for this input source.Modifier and TypeMethodDescriptionvoid
InputSource.setByteStream(InputStream byteStream)
Set the byte stream for this input source.ModifierConstructorDescriptionInputSource(InputStream byteStream)
Create a new input source with a byte stream.