JarOutputStream with the specified
Manifest . |
Manifest(InputStream is)
Constructs a new Manifest from the specified input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LogManager.readConfiguration()
Reinitialize the logging properties and reread the logging configuration.
|
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.
|
| Constructor and Description |
|---|
FileHandler()
Construct a default FileHandler.
|
FileHandler(String pattern)
Initialize a FileHandler to write to the given filename.
|
FileHandler(String pattern,
boolean append)
Initialize a FileHandler to write to the given filename,
with optional append.
|
FileHandler(String pattern,
int limit,
int count)
Initialize a FileHandler to write to a set of files.
|
FileHandler(String pattern,
int limit,
int count,
boolean append)
Initialize a FileHandler to write to a set of files
with optional append.
|
SocketHandler()
Create a SocketHandler, using only LogManager properties
(or their defaults).
|
SocketHandler(String host,
int port)
Construct a SocketHandler using a specified host and port.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Preferences.exportNode(OutputStream os)
Emits on the specified output stream an XML document representing all
of the preferences contained in this node (but not its descendants).
|
void |
AbstractPreferences.exportNode(OutputStream os)
Implements the exportNode method as per the specification in
Preferences.exportNode(OutputStream) . |
abstract void |
Preferences.exportSubtree(OutputStream os)
Emits an XML document representing all of the preferences contained
in this node and all of its descendants.
|
void |
AbstractPreferences.exportSubtree(OutputStream os)
Implements the exportSubtree method as per the specification in
Preferences.exportSubtree(OutputStream) . |
static void |
Preferences.importPreferences(InputStream is)
Imports all of the preferences represented by the XML document on the
specified input stream.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ZipException
Signals that a Zip exception of some sort has occurred.
|
| Modifier and Type | Method and Description |
|---|---|
int |
InflaterInputStream.available()
Returns 0 after EOF has been reached, otherwise always return 1.
|
int |
ZipInputStream.available()
Returns 0 after EOF has reached for the current entry data,
otherwise always return 1.
|
int |
DeflaterInputStream.available()
Returns 0 after EOF has been reached, otherwise always return 1.
|
void |
InflaterInputStream.close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
DeflaterOutputStream.close()
Writes remaining compressed data to the output stream and closes the
underlying stream.
|
void |
ZipFile.close()
Closes the ZIP file.
|
void |
ZipOutputStream.close()
Closes the ZIP output stream as well as the stream being filtered.
|
void |
GZIPInputStream.close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
ZipInputStream.close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
DeflaterInputStream.close()
Closes this input stream and its underlying input stream, discarding
any pending uncompressed data.
|
void |
InflaterOutputStream.close()
Writes any remaining uncompressed data to the output stream and closes
the underlying output stream.
|
void |
ZipOutputStream.closeEntry()
Closes the current ZIP entry and positions the stream for writing
the next entry.
|
void |
ZipInputStream.closeEntry()
Closes the current ZIP entry and positions the stream for reading the
next entry.
|
protected void |
DeflaterOutputStream.deflate()
Writes next block of compressed data to the output stream.
|
protected void |
InflaterInputStream.fill()
Fills input buffer with more data to decompress.
|
protected void |
ZipFile.finalize()
Ensures that the system resources held by this ZipFile object are
released when there are no more references to it.
|
void |
DeflaterOutputStream.finish()
Finishes writing compressed data to the output stream without closing
the underlying stream.
|
void |
ZipOutputStream.finish()
Finishes writing the contents of the ZIP output stream without closing
the underlying stream.
|
void |
InflaterOutputStream.finish()
Finishes writing uncompressed data to the output stream without closing
the underlying stream.
|
void |
GZIPOutputStream.finish()
Finishes writing compressed data to the output stream without closing
the underlying stream.
|
void |
DeflaterOutputStream.flush()
Flushes the compressed output stream.
|
void |
InflaterOutputStream.flush()
Flushes this output stream, forcing any pending buffered output bytes to be
written.
|
InputStream |
ZipFile.getInputStream(ZipEntry entry)
Returns an input stream for reading the contents of the specified
zip file entry.
|
ZipEntry |
ZipInputStream.getNextEntry()
Reads the next ZIP file entry and positions the stream at the
beginning of the entry data.
|
void |
ZipOutputStream.putNextEntry(ZipEntry e)
Begins writing a new ZIP file entry and positions the stream to the
start of the entry data.
|
int |
InflaterInputStream.read()
Reads a byte of uncompressed data.
|
int |
CheckedInputStream.read()
Reads a byte.
|
int |
DeflaterInputStream.read()
Reads a single byte of compressed data from the input stream.
|
int |
InflaterInputStream.read(byte[] b,
int off,
int len)
Reads uncompressed data into an array of bytes.
|
int |
CheckedInputStream.read(byte[] buf,
int off,
int len)
Reads into an array of bytes.
|
int |
GZIPInputStream.read(byte[] buf,
int off,
int len)
Reads uncompressed data into an array of bytes.
|
int |
ZipInputStream.read(byte[] b,
int off,
int len)
Reads from the current ZIP entry into an array of bytes.
|
int |
DeflaterInputStream.read(byte[] b,
int off,
int len)
Reads compressed data into a byte array.
|
void |
InflaterInputStream.reset()
Repositions this stream to the position at the time the
mark method was last called on this input stream. |
void |
DeflaterInputStream.reset()
This operation is not supported.
|
long |
InflaterInputStream.skip(long n)
Skips specified number of bytes of uncompressed data.
|
long |
CheckedInputStream.skip(long n)
Skips specified number of bytes of input.
|
long |
ZipInputStream.skip(long n)
Skips specified number of bytes in the current ZIP entry.
|
long |
DeflaterInputStream.skip(long n)
Skips over and discards data from the input stream.
|
void |
DeflaterOutputStream.write(byte[] b,
int off,
int len)
Writes an array of bytes to the compressed output stream.
|
void |
ZipOutputStream.write(byte[] b,
int off,
int len)
Writes an array of bytes to the current ZIP entry data.
|
void |
CheckedOutputStream.write(byte[] b,
int off,
int len)
Writes an array of bytes.
|
void |
InflaterOutputStream.write(byte[] b,
int off,
int len)
Writes an array of bytes to the uncompressed output stream.
|
void |
GZIPOutputStream.write(byte[] buf,
int off,
int len)
Writes array of bytes to the compressed output stream.
|
void |
DeflaterOutputStream.write(int b)
Writes a byte to the compressed output stream.
|
void |
CheckedOutputStream.write(int b)
Writes a byte.
|
void |
InflaterOutputStream.write(int b)
Writes a byte to the uncompressed output stream.
|
| Constructor and Description |
|---|
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.
|
GZIPOutputStream(OutputStream out)
Creates a new output stream with a default buffer size.
|
GZIPOutputStream(OutputStream out,
boolean syncFlush)
Creates a new output stream with a default buffer size and
the specified flush mode.
|
GZIPOutputStream(OutputStream out,
int size)
Creates a new output stream with the specified buffer size.
|
GZIPOutputStream(OutputStream out,
int size,
boolean syncFlush)
Creates a new output stream with the specified buffer size and
flush mode.
|
ZipFile(File file)
Opens a ZIP file for reading given the specified File object.
|
ZipFile(File file,
Charset charset)
Opens a ZIP file for reading given the specified File object.
|
ZipFile(File file,
int mode)
Opens a new
ZipFile to read from the specified
File object in the specified mode. |
ZipFile(File file,
int mode,
Charset charset)
Opens a new
ZipFile to read from the specified
File object in the specified mode. |
ZipFile(String name)
Opens a zip file for reading.
|
ZipFile(String name,
Charset charset)
Opens a zip file for reading.
|
| Modifier and Type | Class and Description |
|---|---|
class |
UnsupportedDataTypeException
Signals that the requested operation does not support the
requested data type.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
CommandInfo.getCommandObject(DataHandler dh,
ClassLoader loader)
Return the instantiated JavaBean component.
|
Object |
DataHandler.getContent()
Return the data in its preferred Object form.
|
Object |
DataContentHandler.getContent(DataSource ds)
Return an object representing the data in its most preferred form.
|
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 |
DataHandler.getInputStream()
Get the InputStream for this object.
|
InputStream |
DataSource.getInputStream()
This method returns an
InputStream representing
the data and throws the appropriate exception if it can
not do so. |
InputStream |
URLDataSource.getInputStream()
The getInputStream method from the URL.
|
OutputStream |
FileDataSource.getOutputStream()
This method will return an OutputStream representing the
the data and will throw an IOException if it can
not do so.
|
OutputStream |
DataHandler.getOutputStream()
Get an OutputStream for this DataHandler to allow overwriting
the underlying data.
|
OutputStream |
DataSource.getOutputStream()
This method returns an
OutputStream where the
data can be written and throws the appropriate exception if it can
not do so. |
OutputStream |
URLDataSource.getOutputStream()
The getOutputStream method from the URL.
|
Object |
DataHandler.getTransferData(DataFlavor flavor)
Returns an object that represents the data to be
transferred.
|
Object |
DataContentHandler.getTransferData(DataFlavor df,
DataSource ds)
Returns an object which represents the data to be transferred.
|
void |
MimeType.readExternal(ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
void |
CommandObject.setCommandContext(String verb,
DataHandler dh)
Initialize the Command with the verb it is requested to handle
and the DataHandler that describes the data it will
operate on.
|
void |
MimeType.writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings
and arrays.
|
void |
DataContentHandler.writeTo(Object obj,
String mimeType,
OutputStream os)
Convert the object to a byte stream of the specified MIME type
and write it to the output stream.
|
void |
DataHandler.writeTo(OutputStream os)
Write the data to an
OutputStream . |
| Constructor and Description |
|---|
MailcapCommandMap(String fileName)
Constructor that allows the caller to specify the path
of a mailcap file.
|
MimetypesFileTypeMap(String mimeTypeFileName)
Construct a MimetypesFileTypeMap with programmatic entries
added from the named file.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ActivityCompletedException
This exception may be thrown on any method for which Activity context is
accessed and indicates that ongoing work within the Activity is not
possible.
|
class |
ActivityRequiredException
This exception is thrown by a container if Activity context is not received
on a method for which Activity context is mandatory.
|
class |
InvalidActivityException
This exception may be thrown on any method for which Activity context
is accessed and indicates that the attempted invocation or the Activity
context associated with the attempted invocation is incompatible with
the Activity's current state.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FilerException
Indicates a
Filer detected an attempt to open a file that
would violate the guarantees provided by the Filer . |
| Modifier and Type | Method and Description |
|---|---|
JavaFileObject |
Filer.createClassFile(CharSequence name,
Element... originatingElements)
Creates a new class file, and returns an object to allow
writing to it.
|
FileObject |
Filer.createResource(JavaFileManager.Location location,
CharSequence pkg,
CharSequence relativeName,
Element... originatingElements)
Creates a new auxiliary resource file for writing and returns a
file object for it.
|
JavaFileObject |
Filer.createSourceFile(CharSequence name,
Element... originatingElements)
Creates a new source file and returns an object to allow
writing to it.
|
FileObject |
Filer.getResource(JavaFileManager.Location location,
CharSequence pkg,
CharSequence relativeName)
Returns an object for reading an existing resource.
|
| Modifier and Type | Method and Description |
|---|---|
int |
CipherInputStream.available()
Returns the number of bytes that can be read from this input
stream without blocking.
|
void |
CipherOutputStream.close()
Closes this output stream and releases any system resources
associated with this stream.
|
void |
CipherInputStream.close()
Closes this input stream and releases any system resources
associated with the stream.
|
void |
CipherOutputStream.flush()
Flushes this output stream by forcing any buffered output bytes
that have already been processed by the encapsulated cipher object
to be written out.
|
byte[] |
EncryptedPrivateKeyInfo.getEncoded()
Returns the ASN.1 encoding of this object.
|
Object |
SealedObject.getObject(Cipher c)
Retrieves the original (encapsulated) object.
|
Object |
SealedObject.getObject(Key key)
Retrieves the original (encapsulated) object.
|
Object |
SealedObject.getObject(Key key,
String provider)
Retrieves the original (encapsulated) object.
|
int |
CipherInputStream.read()
Reads the next byte of data from this input stream.
|
int |
CipherInputStream.read(byte[] b)
Reads up to
b.length bytes of data from this input
stream into an array of bytes. |
int |
CipherInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this input stream
into an array of bytes. |
long |
CipherInputStream.skip(long n)
Skips
n bytes of input from the bytes that can be read
from this input stream without blocking. |
void |
CipherOutputStream.write(byte[] b)
Writes
b.length bytes from the specified byte array
to this output stream. |
void |
CipherOutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this output stream. |
void |
CipherOutputStream.write(int b)
Writes the specified byte to this output stream.
|
| Constructor and Description |
|---|
EncryptedPrivateKeyInfo(byte[] encoded)
Constructs (i.e., parses) an
EncryptedPrivateKeyInfo from
its ASN.1 encoding. |
SealedObject(Serializable object,
Cipher c)
Constructs a SealedObject from any Serializable object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IIOException
An exception class used for signaling run-time failure of reading
and writing operations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ImageWriter.canInsertEmpty(int imageIndex)
Returns
true if the writer supports the insertion
of a new, empty image at the given index. |
boolean |
ImageWriter.canInsertImage(int imageIndex)
Returns
true if the writer supports the insertion
of a new image at the given index. |
boolean |
ImageWriter.canRemoveImage(int imageIndex)
Returns
true if the writer supports the removal
of an existing image at the given index. |
boolean |
ImageWriter.canReplaceImageMetadata(int imageIndex)
Returns
true if it is possible to replace the
image metadata associated with an existing image with index
imageIndex . |
boolean |
ImageWriter.canReplacePixels(int imageIndex)
Returns
true if the writer allows pixels of the
given image to be replaced using the replacePixels
methods. |
boolean |
ImageWriter.canReplaceStreamMetadata()
Returns
true if it is possible to replace the
stream metadata already present in the output. |
boolean |
ImageWriter.canWriteEmpty()
Returns
true if the writer supports the writing of
a complete image stream consisting of a single image with
undefined pixel values and associated metadata and thumbnails
to the output. |
static ImageInputStream |
ImageIO.createImageInputStream(Object input)
Returns an
ImageInputStream that will take its
input from the given Object . |
static ImageOutputStream |
ImageIO.createImageOutputStream(Object output)
Returns an
ImageOutputStream that will send its
output to the given Object . |
void |
ImageWriter.endInsertEmpty()
Completes the insertion of a new image that was begun with a
prior call to
prepareInsertEmpty . |
void |
ImageWriter.endReplacePixels()
Terminates a sequence of calls to
replacePixels . |
void |
ImageWriter.endWriteEmpty()
Completes the writing of a new image that was begun with a
prior call to
prepareWriteEmpty . |
void |
ImageWriter.endWriteSequence()
Completes the writing of a sequence of images begun with
prepareWriteSequence . |
float |
ImageReader.getAspectRatio(int imageIndex)
Returns the aspect ratio of the given image (that is, its width
divided by its height) as a
float . |
String |
ImageReader.getFormatName()
Returns a
String identifying the format of the
input source. |
abstract int |
ImageReader.getHeight(int imageIndex)
Returns the height in pixels of the given image within the
input source.
|
abstract IIOMetadata |
ImageReader.getImageMetadata(int imageIndex)
Returns an
IIOMetadata object containing metadata
associated with the given image, or null if the
reader does not support reading metadata, is set to ignore
metadata, or if no metadata is available. |
IIOMetadata |
ImageReader.getImageMetadata(int imageIndex,
String formatName,
Set<String> nodeNames)
Returns an
IIOMetadata object representing the
metadata associated with the given image, or null
if the reader does not support reading metadata or none
is available. |
abstract Iterator<ImageTypeSpecifier> |
ImageReader.getImageTypes(int imageIndex)
Returns an
Iterator containing possible image
types to which the given image may be decoded, in the form of
ImageTypeSpecifiers s. |
abstract int |
ImageReader.getNumImages(boolean allowSearch)
Returns the number of images, not including thumbnails, available
from the current input source.
|
int |
ImageReader.getNumThumbnails(int imageIndex)
Returns the number of thumbnail preview images associated with
the given image.
|
ImageTypeSpecifier |
ImageReader.getRawImageType(int imageIndex)
Returns an
ImageTypeSpecifier indicating the
SampleModel and ColorModel which most
closely represents the "raw" internal format of the image. |
abstract IIOMetadata |
ImageReader.getStreamMetadata()
Returns an
IIOMetadata object representing the
metadata associated with the input source as a whole (i.e., not
associated with any particular image), or null if
the reader does not support reading metadata, is set to ignore
metadata, or if no metadata is available. |
IIOMetadata |
ImageReader.getStreamMetadata(String formatName,
Set<String> nodeNames)
Returns an
IIOMetadata object representing the
metadata associated with the input source as a whole (i.e.,
not associated with any particular image). |
int |
ImageReader.getThumbnailHeight(int imageIndex,
int thumbnailIndex)
Returns the height of the thumbnail preview image indexed by
thumbnailIndex , associated with the image indexed
by ImageIndex . |
int |
ImageReader.getThumbnailWidth(int imageIndex,
int thumbnailIndex)
Returns the width of the thumbnail preview image indexed by
thumbnailIndex , associated with the image indexed
by ImageIndex . |
int |
ImageReader.getTileGridXOffset(int imageIndex)
Returns the X coordinate of the upper-left corner of tile (0,
0) in the given image.
|
int |
ImageReader.getTileGridYOffset(int imageIndex)
Returns the Y coordinate of the upper-left corner of tile (0,
0) in the given image.
|
int |
ImageReader.getTileHeight(int imageIndex)
Returns the height of a tile in the given image.
|
int |
ImageReader.getTileWidth(int imageIndex)
Returns the width of a tile in the given image.
|
abstract int |
ImageReader.getWidth(int imageIndex)
Returns the width in pixels of the given image within the input
source.
|
boolean |
ImageReader.hasThumbnails(int imageIndex)
Returns
true if the given image has thumbnail
preview images associated with it. |
boolean |
ImageReader.isImageTiled(int imageIndex)
Returns
true if the image is organized into
tiles, that is, equal-sized non-overlapping rectangles. |
boolean |
ImageReader.isRandomAccessEasy(int imageIndex)
Returns
true if the storage format of the given
image places no inherent impediment on random access to pixels. |
void |
ImageWriter.prepareInsertEmpty(int imageIndex,
ImageTypeSpecifier imageType,
int width,
int height,
IIOMetadata imageMetadata,
List<? extends BufferedImage> thumbnails,
ImageWriteParam param)
Begins the insertion of a new image with undefined pixel values
into an existing image stream.
|
void |
ImageWriter.prepareReplacePixels(int imageIndex,
Rectangle region)
Prepares the writer to handle a series of calls to the
replacePixels methods. |
void |
ImageWriter.prepareWriteEmpty(IIOMetadata streamMetadata,
ImageTypeSpecifier imageType,
int width,
int height,
IIOMetadata imageMetadata,
List<? extends BufferedImage> thumbnails,
ImageWriteParam param)
Begins the writing of a complete image stream, consisting of a
single image with undefined pixel values and associated
metadata and thumbnails, to the output.
|
void |
ImageWriter.prepareWriteSequence(IIOMetadata streamMetadata)
Prepares a stream to accept a series of subsequent
writeToSequence calls, using the provided stream
metadata object. |
static BufferedImage |
ImageIO.read(File input)
Returns a
BufferedImage as the result of decoding
a supplied File with an ImageReader
chosen automatically from among those currently registered. |
static BufferedImage |
ImageIO.read(ImageInputStream stream)
Returns a
BufferedImage as the result of decoding
a supplied ImageInputStream with an
ImageReader chosen automatically from among those
currently registered. |
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. |
BufferedImage |
ImageReader.read(int imageIndex)
Reads the image indexed by
imageIndex and returns
it as a complete BufferedImage , using a default
ImageReadParam . |
abstract BufferedImage |
ImageReader.read(int imageIndex,
ImageReadParam param)
Reads the image indexed by
imageIndex and returns
it as a complete BufferedImage , using a supplied
ImageReadParam . |
static BufferedImage |
ImageIO.read(URL input)
Returns a
BufferedImage as the result of decoding
a supplied URL with an ImageReader
chosen automatically from among those currently registered. |
IIOImage |
ImageReader.readAll(int imageIndex,
ImageReadParam param)
Reads the image indexed by
imageIndex and returns
an IIOImage containing the image, thumbnails, and
associated image metadata, using a supplied
ImageReadParam . |
Iterator<IIOImage> |
ImageReader.readAll(Iterator<? extends ImageReadParam> params)
Returns an
Iterator containing all the images,
thumbnails, and metadata, starting at the index given by
getMinIndex , from the input source in the form of
IIOImage objects. |
RenderedImage |
ImageReader.readAsRenderedImage(int imageIndex,
ImageReadParam param)
Returns a
RenderedImage object that contains the
contents of the image indexed by imageIndex . |
Raster |
ImageReader.readRaster(int imageIndex,
ImageReadParam param)
Returns a new
Raster object containing the raw pixel data
from the image stream, without any color conversion applied. |
BufferedImage |
ImageReader.readThumbnail(int imageIndex,
int thumbnailIndex)
Returns the thumbnail preview image indexed by
thumbnailIndex , associated with the image indexed
by ImageIndex as a BufferedImage . |
BufferedImage |
ImageReader.readTile(int imageIndex,
int tileX,
int tileY)
Reads the tile indicated by the
tileX and
tileY arguments, returning it as a
BufferedImage . |
Raster |
ImageReader.readTileRaster(int imageIndex,
int tileX,
int tileY)
Returns a new
Raster object containing the raw
pixel data from the tile, without any color conversion applied. |
void |
ImageWriter.removeImage(int imageIndex)
Removes an image from the stream.
|
void |
ImageWriter.replaceImageMetadata(int imageIndex,
IIOMetadata imageMetadata)
Replaces the image metadata associated with an existing image.
|
void |
ImageWriter.replacePixels(Raster raster,
ImageWriteParam param)
Replaces a portion of an image already present in the output
with a portion of the given
Raster . |
void |
ImageWriter.replacePixels(RenderedImage image,
ImageWriteParam param)
Replaces a portion of an image already present in the output
with a portion of the given image.
|
void |
ImageWriter.replaceStreamMetadata(IIOMetadata streamMetadata)
Replaces the stream metadata in the output with new
information.
|
void |
ImageWriter.write(IIOImage image)
Appends a complete image stream containing a single image with
default metadata and thumbnails to the output.
|
abstract void |
ImageWriter.write(IIOMetadata streamMetadata,
IIOImage image,
ImageWriteParam param)
Appends a complete image stream containing a single image and
associated stream and image metadata and thumbnails to the
output.
|
void |
ImageWriter.write(RenderedImage image)
Appends a complete image stream consisting of a single image
with default metadata and thumbnails to the output.
|
static boolean |
ImageIO.write(RenderedImage im,
String formatName,
File output)
Writes an image using an arbitrary
ImageWriter
that supports the given format to a File . |
static boolean |
ImageIO.write(RenderedImage im,
String formatName,
ImageOutputStream output)
Writes an image using the an arbitrary
ImageWriter
that supports the given format to an
ImageOutputStream . |
static boolean |
ImageIO.write(RenderedImage im,
String formatName,
OutputStream output)
Writes an image using an arbitrary
ImageWriter
that supports the given format to an OutputStream . |
void |
ImageWriter.writeInsert(int imageIndex,
IIOImage image,
ImageWriteParam param)
Inserts a new image into an existing image stream.
|
void |
ImageWriter.writeToSequence(IIOImage image,
ImageWriteParam param)
Appends a single image and possibly associated metadata and
thumbnails, to the output.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IIOInvalidTreeException
An
IIOInvalidTreeException is thrown when an attempt
by an IIOMetadata object to parse a tree of
IIOMetadataNode s fails. |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
ImageReaderSpi.canDecodeInput(Object source)
Returns
true if the supplied source object appears
to be of the format supported by this reader. |
ImageInputStream |
ImageInputStreamSpi.createInputStreamInstance(Object input)
Returns an instance of the
ImageInputStream
implementation associated with this service provider. |
abstract ImageInputStream |
ImageInputStreamSpi.createInputStreamInstance(Object input,
boolean useCache,
File cacheDir)
Returns an instance of the
ImageInputStream
implementation associated with this service provider. |
ImageOutputStream |
ImageOutputStreamSpi.createOutputStreamInstance(Object output)
Returns an instance of the
ImageOutputStream
implementation associated with this service provider. |
abstract ImageOutputStream |
ImageOutputStreamSpi.createOutputStreamInstance(Object output,
boolean useCache,
File cacheDir)
Returns an instance of the
ImageOutputStream
implementation associated with this service provider. |
ImageReader |
ImageReaderSpi.createReaderInstance()
Returns an instance of the
ImageReader
implementation associated with this service provider. |
abstract ImageReader |
ImageReaderSpi.createReaderInstance(Object extension)
Returns an instance of the
ImageReader
implementation associated with this service provider. |
ImageWriter |
ImageWriterSpi.createWriterInstance()
Returns an instance of the
ImageWriter
implementation associated with this service provider. |
abstract ImageWriter |
ImageWriterSpi.createWriterInstance(Object extension)
Returns an instance of the
ImageWriter
implementation associated with this service provider. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ImageInputStreamImpl.checkClosed()
Throws an
IOException if the stream has been closed. |
void |
ImageInputStreamImpl.close() |
void |
MemoryCacheImageInputStream.close()
Closes this
MemoryCacheImageInputStream , freeing
the cache. |
void |
MemoryCacheImageOutputStream.close()
Closes this
MemoryCacheImageOutputStream . |
void |
FileCacheImageInputStream.close()
Closes this
FileCacheImageInputStream , closing
and removing the cache file. |
void |
FileImageInputStream.close() |
void |
FileCacheImageOutputStream.close()
Closes this
FileCacheImageOutputStream . |
void |
ImageInputStream.close()
Closes the stream.
|
void |
FileImageOutputStream.close() |
void |
ImageInputStreamImpl.flush() |
void |
ImageInputStream.flush()
Discards the initial position of the stream prior to the current
stream position.
|
void |
ImageInputStreamImpl.flushBefore(long pos) |
void |
MemoryCacheImageInputStream.flushBefore(long pos) |
void |
MemoryCacheImageOutputStream.flushBefore(long pos) |
void |
ImageOutputStream.flushBefore(long pos)
Flushes all data prior to the given position to the underlying
destination, such as an
OutputStream or
File . |
void |
FileCacheImageOutputStream.flushBefore(long pos) |
void |
ImageInputStream.flushBefore(long pos)
Discards the initial portion of the stream prior to the
indicated postion.
|
protected void |
ImageOutputStreamImpl.flushBits()
If the bit offset is non-zero, forces the remaining bits
in the current byte to 0 and advances the stream position
by one.
|
int |
ImageInputStreamImpl.getBitOffset() |
int |
ImageInputStream.getBitOffset()
Returns the current bit offset, as an integer between 0 and 7,
inclusive.
|
long |
ImageInputStreamImpl.getStreamPosition() |
long |
ImageInputStream.getStreamPosition()
Returns the current byte position of the stream.
|
long |
ImageInputStream.length()
Returns the total length of the stream, if known.
|
abstract int |
ImageInputStreamImpl.read()
Reads a single byte from the stream and returns it as an
int between 0 and 255. |
int |
MemoryCacheImageInputStream.read() |
int |
MemoryCacheImageOutputStream.read() |
int |
FileCacheImageInputStream.read() |
int |
FileImageInputStream.read() |
int |
FileCacheImageOutputStream.read() |
int |
ImageInputStream.read()
Reads a single byte from the stream and returns it as an
integer between 0 and 255.
|
int |
FileImageOutputStream.read() |
int |
ImageInputStreamImpl.read(byte[] b)
A convenience method that calls
read(b, 0, b.length) . |
int |
ImageInputStream.read(byte[] b)
Reads up to
b.length bytes from the stream, and
stores them into b starting at index 0. |
abstract int |
ImageInputStreamImpl.read(byte[] b,
int off,
int len)
Reads up to
len bytes from the stream, and stores
them into b starting at index off . |
int |
MemoryCacheImageInputStream.read(byte[] b,
int off,
int len) |
int |
MemoryCacheImageOutputStream.read(byte[] b,
int off,
int len) |
int |
FileCacheImageInputStream.read(byte[] b,
int off,
int len) |
int |
FileImageInputStream.read(byte[] b,
int off,
int len) |
int |
FileCacheImageOutputStream.read(byte[] b,
int off,
int len) |
int |
ImageInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes from the stream, and stores
them into b starting at index off . |
int |
FileImageOutputStream.read(byte[] b,
int off,
int len) |
int |
ImageInputStreamImpl.readBit() |
int |
ImageInputStream.readBit()
Reads a single bit from the stream and returns it as an
int with the value 0 or
1 . |
long |
ImageInputStreamImpl.readBits(int numBits) |
long |
ImageInputStream.readBits(int numBits)
Reads a bitstring from the stream and returns it as a
long , with the first bit read becoming the most
significant bit of the output. |
boolean |
ImageInputStreamImpl.readBoolean() |
boolean |
ImageInputStream.readBoolean()
Reads a byte from the stream and returns a
boolean
value of true if it is nonzero, false
if it is zero. |
byte |
ImageInputStreamImpl.readByte() |
byte |
ImageInputStream.readByte()
Reads a byte from the stream and returns it as a
byte value. |
void |
ImageInputStreamImpl.readBytes(IIOByteBuffer buf,
int len) |
void |
ImageInputStream.readBytes(IIOByteBuffer buf,
int len)
Reads up to
len bytes from the stream, and
modifies the supplied IIOByteBuffer to indicate
the byte array, offset, and length where the data may be found. |
char |
ImageInputStreamImpl.readChar() |
char |
ImageInputStream.readChar()
Equivalent to
readUnsignedShort , except that the
result is returned using the char datatype. |
double |
ImageInputStreamImpl.readDouble() |
double |
ImageInputStream.readDouble()
Reads 8 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a
double . |
float |
ImageInputStreamImpl.readFloat() |
float |
ImageInputStream.readFloat()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a
float . |
void |
ImageInputStreamImpl.readFully(byte[] b) |
void |
ImageInputStream.readFully(byte[] b)
Reads
b.length bytes from the stream, and stores them
into b starting at index 0 . |
void |
ImageInputStreamImpl.readFully(byte[] b,
int off,
int len) |
void |
ImageInputStream.readFully(byte[] b,
int off,
int len)
Reads
len bytes from the stream, and stores them
into b starting at index off . |
void |
ImageInputStreamImpl.readFully(char[] c,
int off,
int len) |
void |
ImageInputStream.readFully(char[] c,
int off,
int len)
Reads
len chars (unsigned 16-bit integers) from the
stream according to the current byte order, and
stores them into c starting at index
off . |
void |
ImageInputStreamImpl.readFully(double[] d,
int off,
int len) |
void |
ImageInputStream.readFully(double[] d,
int off,
int len)
Reads
len doubles (64-bit IEEE double-precision
floats) from the stream according to the current byte order,
and stores them into d starting at
index off . |
void |
ImageInputStreamImpl.readFully(float[] f,
int off,
int len) |
void |
ImageInputStream.readFully(float[] f,
int off,
int len)
Reads
len floats (32-bit IEEE single-precision
floats) from the stream according to the current byte order,
and stores them into f starting at
index off . |
void |
ImageInputStreamImpl.readFully(int[] i,
int off,
int len) |
void |
ImageInputStream.readFully(int[] i,
int off,
int len)
Reads
len ints (signed 32-bit integers) from the
stream according to the current byte order, and
stores them into i starting at index
off . |
void |
ImageInputStreamImpl.readFully(long[] l,
int off,
int len) |
void |
ImageInputStream.readFully(long[] l,
int off,
int len)
Reads
len longs (signed 64-bit integers) from the
stream according to the current byte order, and
stores them into l starting at index
off . |
void |
ImageInputStreamImpl.readFully(short[] s,
int off,
int len) |
void |
ImageInputStream.readFully(short[] s,
int off,
int len)
Reads
len shorts (signed 16-bit integers) from the
stream according to the current byte order, and
stores them into s starting at index
off . |
int |
ImageInputStreamImpl.readInt() |
int |
ImageInputStream.readInt()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as an
int . |
String |
ImageInputStreamImpl.readLine() |
String |
ImageInputStream.readLine()
Reads the next line of text from the input stream.
|
long |
ImageInputStreamImpl.readLong() |
long |
ImageInputStream.readLong()
Reads 8 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a
long . |
short |
ImageInputStreamImpl.readShort() |
short |
ImageInputStream.readShort()
Reads two bytes from the stream, and (conceptually)
concatenates them according to the current byte order, and
returns the result as a
short value. |
int |
ImageInputStreamImpl.readUnsignedByte() |
int |
ImageInputStream.readUnsignedByte()
Reads a byte from the stream, and (conceptually) converts it to
an int, masks it with
0xff in order to strip off
any sign-extension bits, and returns it as a byte
value. |
long |
ImageInputStreamImpl.readUnsignedInt() |
long |
ImageInputStream.readUnsignedInt()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order, converts the result
to a long, masks it with
0xffffffffL in order to
strip off any sign-extension bits, and returns the result as an
unsigned long value. |
int |
ImageInputStreamImpl.readUnsignedShort() |
int |
ImageInputStream.readUnsignedShort()
Reads two bytes from the stream, and (conceptually)
concatenates them according to the current byte order, converts
the resulting value to an
int , masks it with
0xffff in order to strip off any sign-extension
buts, and returns the result as an unsigned int
value. |
String |
ImageInputStreamImpl.readUTF() |
String |
ImageInputStream.readUTF()
Reads in a string that has been encoded using a
modified
UTF-8
format.
|
void |
ImageInputStreamImpl.reset()
Resets the current stream byte and bit positions from the stack
of marked positions.
|
void |
ImageInputStream.reset()
Returns the stream pointer to its previous position, including
the bit offset, at the time of the most recent unmatched call
to
mark . |
void |
ImageInputStreamImpl.seek(long pos) |
void |
FileImageInputStream.seek(long pos) |
void |
FileCacheImageOutputStream.seek(long pos)
Sets the current stream position and resets the bit offset to
0.
|
void |
ImageInputStream.seek(long pos)
Sets the current stream position to the desired location.
|
void |
FileImageOutputStream.seek(long pos)
Sets the current stream position and resets the bit offset to
0.
|
void |
ImageInputStreamImpl.setBitOffset(int bitOffset) |
void |
ImageInputStream.setBitOffset(int bitOffset)
Sets the bit offset to an integer between 0 and 7, inclusive.
|
int |
ImageInputStreamImpl.skipBytes(int n)
Advances the current stream position by calling
seek(getStreamPosition() + n) . |
int |
ImageInputStream.skipBytes(int n)
Moves the stream position forward by a given number of bytes.
|
long |
ImageInputStreamImpl.skipBytes(long n)
Advances the current stream position by calling
seek(getStreamPosition() + n) . |
long |
ImageInputStream.skipBytes(long n)
Moves the stream position forward by a given number of bytes.
|
void |
ImageOutputStream.write(byte[] b)
Writes a sequence of bytes to the stream at the current
position.
|
void |
ImageOutputStreamImpl.write(byte[] b) |
void |
MemoryCacheImageOutputStream.write(byte[] b,
int off,
int len) |
void |
ImageOutputStream.write(byte[] b,
int off,
int len)
Writes a sequence of bytes to the stream at the current
position.
|
void |
FileCacheImageOutputStream.write(byte[] b,
int off,
int len) |
void |
FileImageOutputStream.write(byte[] b,
int off,
int len) |
abstract void |
ImageOutputStreamImpl.write(byte[] b,
int off,
int len) |
void |
MemoryCacheImageOutputStream.write(int b) |
void |
ImageOutputStream.write(int b)
Writes a single byte to the stream at the current position.
|
void |
FileCacheImageOutputStream.write(int b) |
void |
FileImageOutputStream.write(int b) |
abstract void |
ImageOutputStreamImpl.write(int b) |
void |
ImageOutputStream.writeBit(int bit)
Writes a single bit, given by the least significant bit of the
argument, to the stream at the current bit offset within the
current byte position.
|
void |
ImageOutputStreamImpl.writeBit(int bit) |
void |
ImageOutputStream.writeBits(long bits,
int numBits)
Writes a sequence of bits, given by the
numBits
least significant bits of the bits argument in
left-to-right order, to the stream at the current bit offset
within the current byte position. |
void |
ImageOutputStreamImpl.writeBits(long bits,
int numBits) |
void |
ImageOutputStream.writeBoolean(boolean v)
Writes a
boolean value to the stream. |
void |
ImageOutputStreamImpl.writeBoolean(boolean v) |
void |
ImageOutputStream.writeByte(int v)
Writes the 8 low-order bits of
v to the
stream. |
void |
ImageOutputStreamImpl.writeByte(int v) |
void |
ImageOutputStream.writeBytes(String s)
Writes a string to the output stream.
|
void |
ImageOutputStreamImpl.writeBytes(String s) |
void |
ImageOutputStream.writeChar(int v)
This method is a synonym for
. |
void |
ImageOutputStreamImpl.writeChar(int v) |
void |
ImageOutputStream.writeChars(char[] c,
int off,
int len)
Writes a sequence of chars to the stream at the current
position.
|
void |
ImageOutputStreamImpl.writeChars(char[] c,
int off,
int len) |
void |
ImageOutputStream.writeChars(String s)
Writes a string to the output stream.
|
void |
ImageOutputStreamImpl.writeChars(String s) |
void |
ImageOutputStream.writeDouble(double v)
Writes a
double value, which is comprised of four
bytes, to the output stream. |
void |
ImageOutputStreamImpl.writeDouble(double v) |
void |
ImageOutputStream.writeDoubles(double[] d,
int off,
int len)
Writes a sequence of doubles to the stream at the current
position.
|
void |
ImageOutputStreamImpl.writeDoubles(double[] d,
int off,
int len) |
void |
ImageOutputStream.writeFloat(float v)
Writes a
float value, which is comprised of four
bytes, to the output stream. |
void |
ImageOutputStreamImpl.writeFloat(float v) |
void |
ImageOutputStream.writeFloats(float[] f,
int off,
int len)
Writes a sequence of floats to the stream at the current
position.
|
void |
ImageOutputStreamImpl.writeFloats(float[] f,
int off,
int len) |
void |
ImageOutputStream.writeInt(int v)
Writes the 32 bits of
v to the stream. |
void |
ImageOutputStreamImpl.writeInt(int v) |
void |
ImageOutputStream.writeInts(int[] i,
int off,
int len)
Writes a sequence of ints to the stream at the current
position.
|
void |
ImageOutputStreamImpl.writeInts(int[] i,
int off,
int len) |
void |
ImageOutputStream.writeLong(long v)
Writes the 64 bits of
v to the stream. |
void |
ImageOutputStreamImpl.writeLong(long v) |
void |
ImageOutputStream.writeLongs(long[] l,
int off,
int len)
Writes a sequence of longs to the stream at the current
position.
|
void |
ImageOutputStreamImpl.writeLongs(long[] l,
int off,
int len) |
void |
ImageOutputStream.writeShort(int v)
Writes the 16 low-order bits of
v to the
stream. |
void |
ImageOutputStreamImpl.writeShort(int v) |
void |
ImageOutputStream.writeShorts(short[] s,
int off,
int len)
Writes a sequence of shorts to the stream at the current
position.
|
void |
ImageOutputStreamImpl.writeShorts(short[] s,
int off,
int len) |
void |
ImageOutputStream.writeUTF(String s)
Writes two bytes of length information to the output stream in
network byte order, followed by the
modified
UTF-8
representation of every character in the string
s . |
void |
ImageOutputStreamImpl.writeUTF(String s) |
| Constructor and Description |
|---|
FileCacheImageInputStream(InputStream stream,
File cacheDir)
Constructs a
FileCacheImageInputStream that will read
from a given InputStream . |
FileCacheImageOutputStream(OutputStream stream,
File cacheDir)
Constructs a
FileCacheImageOutputStream that will write
to a given outputStream . |
FileImageInputStream(File f)
Constructs a
FileImageInputStream that will read
from a given File . |
FileImageOutputStream(File f)
Constructs a
FileImageOutputStream that will write
to a given File . |
| Modifier and Type | Method and Description |
|---|---|
void |
MBeanServerConnection.addNotificationListener(ObjectName name,
NotificationListener listener,
NotificationFilter filter,
Object handback)
Adds a listener to a registered MBean.
|
void |
MBeanServerConnection.addNotificationListener(ObjectName name,
ObjectName listener,
NotificationFilter filter,
Object handback)
Adds a listener to a registered MBean.
|
ObjectInstance |
MBeanServerConnection.createMBean(String className,
ObjectName name)
Instantiates and registers an MBean in the MBean server.
|
ObjectInstance |
MBeanServerConnection.createMBean(String className,
ObjectName name,
Object[] params,
String[] signature)
Instantiates and registers an MBean in the MBean server.
|
ObjectInstance |
MBeanServerConnection.createMBean(String className,
ObjectName name,
ObjectName loaderName)
Instantiates and registers an MBean in the MBean server.
|
ObjectInstance |
MBeanServerConnection.createMBean(String className,
ObjectName name,
ObjectName loaderName,
Object[] params,
String[] signature)
Instantiates and registers an MBean in the MBean server.
|
Object |
MBeanServerConnection.getAttribute(ObjectName name,
String attribute)
Gets the value of a specific attribute of a named MBean.
|
AttributeList |
MBeanServerConnection.getAttributes(ObjectName name,
String[] attributes)
Retrieves the values of several attributes of a named MBean.
|
String |
MBeanServerConnection.getDefaultDomain()
Returns the default domain used for naming the MBean.
|
String[] |
MBeanServerConnection.getDomains()
Returns the list of domains in which any MBean is currently
registered.
|
Integer |
MBeanServerConnection.getMBeanCount()
Returns the number of MBeans registered in the MBean server.
|
MBeanInfo |
MBeanServerConnection.getMBeanInfo(ObjectName name)
This method discovers the attributes and operations that an
MBean exposes for management.
|
ObjectInstance |
MBeanServerConnection.getObjectInstance(ObjectName name)
Gets the
ObjectInstance for a given MBean
registered with the MBean server. |
Object |
MBeanServerConnection.invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature)
Invokes an operation on an MBean.
|
boolean |
MBeanServerConnection.isInstanceOf(ObjectName name,
String className)
Returns true if the MBean specified is an instance of the
specified class, false otherwise.
|
boolean |
MBeanServerConnection.isRegistered(ObjectName name)
Checks whether an MBean, identified by its object name, is
already registered with the MBean server.
|
Set<ObjectInstance> |
MBeanServerConnection.queryMBeans(ObjectName name,
QueryExp query)
Gets MBeans controlled by the MBean server.
|
Set<ObjectName> |
MBeanServerConnection.queryNames(ObjectName name,
QueryExp query)
Gets the names of MBeans controlled by the MBean server.
|
void |
MBeanServerConnection.removeNotificationListener(ObjectName name,
NotificationListener listener)
Removes a listener from a registered MBean.
|
void |
MBeanServerConnection.removeNotificationListener(ObjectName name,
NotificationListener listener,
NotificationFilter filter,
Object handback)
Removes a listener from a registered MBean.
|
void |
MBeanServerConnection.removeNotificationListener(ObjectName name,
ObjectName listener)
Removes a listener from a registered MBean.
|
void |
MBeanServerConnection.removeNotificationListener(ObjectName name,
ObjectName listener,
NotificationFilter filter,
Object handback)
Removes a listener from a registered MBean.
|
void |
MBeanServerConnection.setAttribute(ObjectName name,
Attribute attribute)
Sets the value of a specific attribute of a named MBean.
|
AttributeList |
MBeanServerConnection.setAttributes(ObjectName name,
AttributeList attributes)
Sets the values of several attributes of a named MBean.
|
void |
MBeanServerConnection.unregisterMBean(ObjectName name)
Unregisters an MBean from the MBean server.
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration<URL> |
MLetMBean.getResources(String name)
Finds all the resources with the given name.
|
void |
MLet.readExternal(ObjectInput in)
Restore this MLet's contents from the given
ObjectInput . |
void |
MLet.writeExternal(ObjectOutput out)
Save this MLet's contents to the given
ObjectOutput . |
| Modifier and Type | Class and Description |
|---|---|
class |
JMXProviderException
Exception thrown by
JMXConnectorFactory and
JMXConnectorServerFactory when a provider exists for
the required protocol but cannot be used for some reason. |
class |
JMXServerErrorException
Exception thrown as the result of a remote
MBeanServer
method invocation when an Error is thrown while
processing the invocation in the remote MBean server. |
| Modifier and Type | Method and Description |
|---|---|
void |
JMXConnector.close()
Closes the client connection to its server.
|
void |
JMXConnector.connect()
Establishes the connection to the connector server.
|
static JMXConnector |
JMXConnectorFactory.connect(JMXServiceURL serviceURL)
Creates a connection to the connector server at the given
address.
|
static JMXConnector |
JMXConnectorFactory.connect(JMXServiceURL serviceURL,
Map<String,?> environment)
Creates a connection to the connector server at the given
address.
|
void |
JMXConnector.connect(Map<String,?> env)
Establishes the connection to the connector server.
|
String |
JMXConnector.getConnectionId()
Gets this connection's ID from the connector server.
|
MBeanServerConnection |
JMXConnector.getMBeanServerConnection()
Returns an
MBeanServerConnection object
representing a remote MBean server. |
MBeanServerConnection |
JMXConnector.getMBeanServerConnection(Subject delegationSubject)
Returns an
MBeanServerConnection object representing
a remote MBean server on which operations are performed on behalf of
the supplied delegation subject. |
static JMXConnector |
JMXConnectorFactory.newJMXConnector(JMXServiceURL serviceURL,
Map<String,?> environment)
Creates a connector client for the connector server at the
given address.
|
JMXConnector |
JMXConnectorProvider.newJMXConnector(JMXServiceURL serviceURL,
Map<String,?> environment)
Creates a new connector client that is ready to connect
to the connector server at the given address.
|
static JMXConnectorServer |
JMXConnectorServerFactory.newJMXConnectorServer(JMXServiceURL serviceURL,
Map<String,?> environment,
MBeanServer mbeanServer)
Creates a connector server at the given address.
|
JMXConnectorServer |
JMXConnectorServerProvider.newJMXConnectorServer(JMXServiceURL serviceURL,
Map<String,?> environment,
MBeanServer mbeanServer)
Creates a new connector server at the given address.
|
void |
JMXConnectorServerMBean.start()
Activates the connector server, that is, starts listening for
client connections.
|
void |
JMXConnectorServerMBean.stop()
Deactivates the connector server, that is, stops listening for
client connections.
|
JMXConnector |
JMXConnectorServerMBean.toJMXConnector(Map<String,?> env)
Returns a client stub for this connector server.
|
JMXConnector |
JMXConnectorServer.toJMXConnector(Map<String,?> env)
Returns a client stub for this connector server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RMIConnectionImpl_Stub.addNotificationListener(ObjectName $param_ObjectName_1,
ObjectName $param_ObjectName_2,
MarshalledObject $param_MarshalledObject_3,
MarshalledObject $param_MarshalledObject_4,
Subject $param_Subject_5) |
void |
RMIConnection.addNotificationListener(ObjectName name,
ObjectName listener,
MarshalledObject filter,
MarshalledObject handback,
Subject delegationSubject)
|
void |
RMIConnectionImpl.addNotificationListener(ObjectName name,
ObjectName listener,
MarshalledObject filter,
MarshalledObject handback,
Subject delegationSubject) |
Integer[] |
RMIConnectionImpl_Stub.addNotificationListeners(ObjectName[] $param_arrayOf_ObjectName_1,
MarshalledObject[] $param_arrayOf_MarshalledObject_2,
Subject[] $param_arrayOf_Subject_3) |
Integer[] |
RMIConnection.addNotificationListeners(ObjectName[] names,
MarshalledObject[] filters,
Subject[] delegationSubjects)
|
Integer[] |
RMIConnectionImpl.addNotificationListeners(ObjectName[] names,
MarshalledObject[] filters,
Subject[] delegationSubjects) |
protected void |
RMIServerImpl.clientClosed(RMIConnection client)
Method called when a client connection created by
makeClient is closed. |
void |
RMIConnectionImpl_Stub.close() |
void |
RMIConnection.close()
Closes this connection.
|
void |
RMIConnector.close() |
void |
RMIServerImpl.close()
Closes this connection server.
|
void |
RMIConnectionImpl.close() |
protected void |
RMIIIOPServerImpl.closeClient(RMIConnection client) |
protected void |
RMIJRMPServerImpl.closeClient(RMIConnection client) |
protected abstract void |
RMIServerImpl.closeClient(RMIConnection client)
Closes a client connection made by
makeClient . |
protected void |
RMIIIOPServerImpl.closeServer()
Called by
RMIServerImpl.close() to close the connector server by
unexporting this object. |
protected void |
RMIJRMPServerImpl.closeServer()
Called by
RMIServerImpl.close() to close the connector server by
unexporting this object. |
protected abstract void |
RMIServerImpl.closeServer()
Called by
RMIServerImpl.close() to close the connector server. |
void |
RMIConnector.connect() |
void |
RMIConnector.connect(Map<String,?> environment) |
ObjectInstance |
RMIConnectionImpl_Stub.createMBean(String $param_String_1,
ObjectName $param_ObjectName_2,
MarshalledObject $param_MarshalledObject_3,
String[] $param_arrayOf_String_4,
Subject $param_Subject_5) |
ObjectInstance |
RMIConnection.createMBean(String className,
ObjectName name,
MarshalledObject params,
String[] signature,
Subject delegationSubject)
Handles the method
MBeanServerConnection.createMBean(String,
ObjectName, Object[], String[]) . |
ObjectInstance |
RMIConnectionImpl.createMBean(String className,
ObjectName name,
MarshalledObject params,
String[] signature,
Subject delegationSubject) |
ObjectInstance |
RMIConnectionImpl_Stub.createMBean(String $param_String_1,
ObjectName $param_ObjectName_2,
ObjectName $param_ObjectName_3,
MarshalledObject $param_MarshalledObject_4,
String[] $param_arrayOf_String_5,
Subject $param_Subject_6) |
ObjectInstance |
RMIConnection.createMBean(String className,
ObjectName name,
ObjectName loaderName,
MarshalledObject params,
String[] signature,
Subject delegationSubject)
|
ObjectInstance |
RMIConnectionImpl.createMBean(String className,
ObjectName name,
ObjectName loaderName,
MarshalledObject params,
String[] signature,
Subject delegationSubject) |
ObjectInstance |
RMIConnectionImpl_Stub.createMBean(String $param_String_1,
ObjectName $param_ObjectName_2,
ObjectName $param_ObjectName_3,
Subject $param_Subject_4) |
ObjectInstance |
RMIConnection.createMBean(String className,
ObjectName name,
ObjectName loaderName,
Subject delegationSubject)
Handles the method
MBeanServerConnection.createMBean(String,
ObjectName, ObjectName) . |
ObjectInstance |
RMIConnectionImpl.createMBean(String className,
ObjectName name,
ObjectName loaderName,
Subject delegationSubject) |
ObjectInstance |
RMIConnectionImpl_Stub.createMBean(String $param_String_1,
ObjectName $param_ObjectName_2,
Subject $param_Subject_3) |
ObjectInstance |
RMIConnection.createMBean(String className,
ObjectName name,
Subject delegationSubject)
Handles the method
MBeanServerConnection.createMBean(String,
ObjectName) . |
ObjectInstance |
RMIConnectionImpl.createMBean(String className,
ObjectName name,
Subject delegationSubject) |
protected void |
RMIIIOPServerImpl.export() |
protected void |
RMIJRMPServerImpl.export() |
protected abstract void |
RMIServerImpl.export()
Exports this RMI object.
|
NotificationResult |
RMIConnectionImpl_Stub.fetchNotifications(long $param_long_1,
int $param_int_2,
long $param_long_3) |
NotificationResult |
RMIConnection.fetchNotifications(long clientSequenceNumber,
int maxNotifications,
long timeout)
Retrieves notifications from the connector server.
|
NotificationResult |
RMIConnectionImpl.fetchNotifications(long clientSequenceNumber,
int maxNotifications,
long timeout) |
Object |
RMIConnectionImpl_Stub.getAttribute(ObjectName $param_ObjectName_1,
String $param_String_2,
Subject $param_Subject_3) |
Object |
RMIConnection.getAttribute(ObjectName name,
String attribute,
Subject delegationSubject)
Handles the method
MBeanServerConnection.getAttribute(ObjectName,
String) . |
Object |
RMIConnectionImpl.getAttribute(ObjectName name,
String attribute,
Subject delegationSubject) |
AttributeList |
RMIConnectionImpl_Stub.getAttributes(ObjectName $param_ObjectName_1,
String[] $param_arrayOf_String_2,
Subject $param_Subject_3) |
AttributeList |
RMIConnection.getAttributes(ObjectName name,
String[] attributes,
Subject delegationSubject)
Handles the method
MBeanServerConnection.getAttributes(ObjectName,
String[]) . |
AttributeList |
RMIConnectionImpl.getAttributes(ObjectName name,
String[] attributes,
Subject delegationSubject) |
String |
RMIConnectionImpl_Stub.getConnectionId() |
String |
RMIConnection.getConnectionId()
Returns the connection ID.
|
String |
RMIConnector.getConnectionId() |
String |
RMIConnectionImpl.getConnectionId() |
String |
RMIConnectionImpl_Stub.getDefaultDomain(Subject $param_Subject_1) |
String |
RMIConnection.getDefaultDomain(Subject delegationSubject)
Handles the method
MBeanServerConnection.getDefaultDomain() . |
String |
RMIConnectionImpl.getDefaultDomain(Subject delegationSubject) |
String[] |
RMIConnectionImpl_Stub.getDomains(Subject $param_Subject_1) |
String[] |
RMIConnection.getDomains(Subject delegationSubject)
Handles the method
MBeanServerConnection.getDomains() . |
String[] |
RMIConnectionImpl.getDomains(Subject delegationSubject) |
Integer |
RMIConnectionImpl_Stub.getMBeanCount(Subject $param_Subject_1) |
Integer |
RMIConnection.getMBeanCount(Subject delegationSubject)
Handles the method
MBeanServerConnection.getMBeanCount() . |
Integer |
RMIConnectionImpl.getMBeanCount(Subject delegationSubject) |
MBeanInfo |
RMIConnectionImpl_Stub.getMBeanInfo(ObjectName $param_ObjectName_1,
Subject $param_Subject_2) |
MBeanInfo |
RMIConnection.getMBeanInfo(ObjectName name,
Subject delegationSubject)
Handles the method
MBeanServerConnection.getMBeanInfo(ObjectName) . |
MBeanInfo |
RMIConnectionImpl.getMBeanInfo(ObjectName name,
Subject delegationSubject) |
MBeanServerConnection |
RMIConnector.getMBeanServerConnection() |
MBeanServerConnection |
RMIConnector.getMBeanServerConnection(Subject delegationSubject) |
ObjectInstance |
RMIConnectionImpl_Stub.getObjectInstance(ObjectName $param_ObjectName_1,
Subject $param_Subject_2) |
ObjectInstance |
RMIConnection.getObjectInstance(ObjectName name,
Subject delegationSubject)
Handles the method
MBeanServerConnection.getObjectInstance(ObjectName) . |
ObjectInstance |
RMIConnectionImpl.getObjectInstance(ObjectName name,
Subject delegationSubject) |
Object |
RMIConnectionImpl_Stub.invoke(ObjectName $param_ObjectName_1,
String $param_String_2,
MarshalledObject $param_MarshalledObject_3,
String[] $param_arrayOf_String_4,
Subject $param_Subject_5) |
Object |
RMIConnection.invoke(ObjectName name,
String operationName,
MarshalledObject params,
String[] signature,
Subject delegationSubject)
Handles the method
MBeanServerConnection.invoke(ObjectName,
String, Object[], String[]) . |
Object |
RMIConnectionImpl.invoke(ObjectName name,
String operationName,
MarshalledObject params,
String[] signature,
Subject delegationSubject) |
boolean |
RMIConnectionImpl_Stub.isInstanceOf(ObjectName $param_ObjectName_1,
String $param_String_2,
Subject $param_Subject_3) |
boolean |
RMIConnection.isInstanceOf(ObjectName name,
String className,
Subject delegationSubject)
Handles the method
MBeanServerConnection.isInstanceOf(ObjectName,
String) . |
boolean |
RMIConnectionImpl.isInstanceOf(ObjectName name,
String className,
Subject delegationSubject) |
boolean |
RMIConnectionImpl_Stub.isRegistered(ObjectName $param_ObjectName_1,
Subject $param_Subject_2) |
boolean |
RMIConnection.isRegistered(ObjectName name,
Subject delegationSubject)
Handles the method
MBeanServerConnection.isRegistered(ObjectName) . |
boolean |
RMIConnectionImpl.isRegistered(ObjectName name,
Subject delegationSubject) |
protected RMIConnection |
RMIIIOPServerImpl.makeClient(String connectionId,
Subject subject)
Creates a new client connection as an RMI object exported
through IIOP.
|
protected RMIConnection |
RMIJRMPServerImpl.makeClient(String connectionId,
Subject subject)
Creates a new client connection as an RMI object exported
through JRMP.
|
protected abstract RMIConnection |
RMIServerImpl.makeClient(String connectionId,
Subject subject)
Creates a new client connection.
|
RMIConnection |
RMIServer.newClient(Object credentials)
Makes a new connection through this RMI connector.
|
RMIConnection |
RMIServerImpl_Stub.newClient(Object $param_Object_1) |
RMIConnection |
RMIServerImpl.newClient(Object credentials)
Creates a new client connection.
|
Set |
RMIConnectionImpl_Stub.queryMBeans(ObjectName $param_ObjectName_1,
MarshalledObject $param_MarshalledObject_2,
Subject $param_Subject_3) |
Set<ObjectInstance> |
RMIConnection.queryMBeans(ObjectName name,
MarshalledObject query,
Subject delegationSubject)
Handles the method
MBeanServerConnection.queryMBeans(ObjectName,
QueryExp) . |
Set<ObjectInstance> |
RMIConnectionImpl.queryMBeans(ObjectName name,
MarshalledObject query,
Subject delegationSubject) |
Set |
RMIConnectionImpl_Stub.queryNames(ObjectName $param_ObjectName_1,
MarshalledObject $param_MarshalledObject_2,
Subject $param_Subject_3) |
Set<ObjectName> |
RMIConnection.queryNames(ObjectName name,
MarshalledObject query,
Subject delegationSubject)
Handles the method
MBeanServerConnection.queryNames(ObjectName,
QueryExp) . |
Set<ObjectName> |
RMIConnectionImpl.queryNames(ObjectName name,
MarshalledObject query,
Subject delegationSubject) |
void |
RMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1,
ObjectName $param_ObjectName_2,
MarshalledObject $param_MarshalledObject_3,
MarshalledObject $param_MarshalledObject_4,
Subject $param_Subject_5) |
void |
RMIConnection.removeNotificationListener(ObjectName name,
ObjectName listener,
MarshalledObject filter,
MarshalledObject handback,
Subject delegationSubject)
|
void |
RMIConnectionImpl.removeNotificationListener(ObjectName name,
ObjectName listener,
MarshalledObject filter,
MarshalledObject handback,
Subject delegationSubject) |
void |
RMIConnectionImpl_Stub.removeNotificationListener(ObjectName $param_ObjectName_1,
ObjectName $param_ObjectName_2,
Subject $param_Subject_3) |
void |
RMIConnection.removeNotificationListener(ObjectName name,
ObjectName listener,
Subject delegationSubject)
Handles the method
MBeanServerConnection.removeNotificationListener(ObjectName,
ObjectName) . |
void |
RMIConnectionImpl.removeNotificationListener(ObjectName name,
ObjectName listener,
Subject delegationSubject) |
void |
RMIConnectionImpl_Stub.removeNotificationListeners(ObjectName $param_ObjectName_1,
Integer[] $param_arrayOf_Integer_2,
Subject $param_Subject_3) |
void |
RMIConnection.removeNotificationListeners(ObjectName name,
Integer[] listenerIDs,
Subject delegationSubject)
|
void |
RMIConnectionImpl.removeNotificationListeners(ObjectName name,
Integer[] listenerIDs,
Subject delegationSubject) |
void |
RMIConnectionImpl_Stub.setAttribute(ObjectName $param_ObjectName_1,
MarshalledObject $param_MarshalledObject_2,
Subject $param_Subject_3) |
void |
RMIConnection.setAttribute(ObjectName name,
MarshalledObject attribute,
Subject delegationSubject)
Handles the method
MBeanServerConnection.setAttribute(ObjectName,
Attribute) . |
void |
RMIConnectionImpl.setAttribute(ObjectName name,
MarshalledObject attribute,
Subject delegationSubject) |
AttributeList |
RMIConnectionImpl_Stub.setAttributes(ObjectName $param_ObjectName_1,
MarshalledObject $param_MarshalledObject_2,
Subject $param_Subject_3) |
AttributeList |
RMIConnection.setAttributes(ObjectName name,
MarshalledObject attributes,
Subject delegationSubject)
Handles the method
MBeanServerConnection.setAttributes(ObjectName,
AttributeList) . |
AttributeList |
RMIConnectionImpl.setAttributes(ObjectName name,
MarshalledObject attributes,
Subject delegationSubject) |
void |
RMIConnectorServer.start()
Activates the connector server, that is starts listening for
client connections.
|
void |
RMIConnectorServer.stop()
Deactivates the connector server, that is, stops listening for
client connections.
|
JMXConnector |
RMIConnectorServer.toJMXConnector(Map<String,?> env)
Returns a client stub for this connector server.
|
Remote |
RMIIIOPServerImpl.toStub()
Returns an IIOP stub.
|
Remote |
RMIJRMPServerImpl.toStub()
Returns a serializable stub for this
RMIServer object. |
abstract Remote |
RMIServerImpl.toStub()
Returns a remotable stub for this server object.
|
void |
RMIConnectionImpl_Stub.unregisterMBean(ObjectName $param_ObjectName_1,
Subject $param_Subject_2) |
void |
RMIConnection.unregisterMBean(ObjectName name,
Subject delegationSubject)
Handles the method
MBeanServerConnection.unregisterMBean(ObjectName) . |
void |
RMIConnectionImpl.unregisterMBean(ObjectName name,
Subject delegationSubject) |
| Constructor and Description |
|---|
RMIConnectorServer(JMXServiceURL url,
Map<String,?> environment)
Makes an
RMIConnectorServer . |
RMIConnectorServer(JMXServiceURL url,
Map<String,?> environment,
MBeanServer mbeanServer)
Makes an
RMIConnectorServer for the given MBean
server. |
RMIConnectorServer(JMXServiceURL url,
Map<String,?> environment,
RMIServerImpl rmiServerImpl,
MBeanServer mbeanServer)
Makes an
RMIConnectorServer for the given MBean
server. |
RMIIIOPServerImpl(Map<String,?> env)
Creates a new
RMIServerImpl . |
RMIJRMPServerImpl(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf,
Map<String,?> env)
Creates a new
RMIServer object that will be exported
on the given port using the given socket factories. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
StartTlsResponse.close()
Closes the TLS connection gracefully and reverts back to the underlying
connection.
|
abstract SSLSession |
StartTlsResponse.negotiate()
Negotiates a TLS session using the default SSL socket factory.
|
abstract SSLSession |
StartTlsResponse.negotiate(SSLSocketFactory factory)
Negotiates a TLS session using an SSL socket factory.
|
| Constructor and Description |
|---|
PagedResultsControl(int pageSize,
boolean criticality)
Constructs a control to set the number of entries to be returned per
page of results.
|
PagedResultsControl(int pageSize,
byte[] cookie,
boolean criticality)
Constructs a control to set the number of entries to be returned per
page of results.
|
PagedResultsResponseControl(String id,
boolean criticality,
byte[] value)
Constructs a paged-results response control.
|
SortControl(SortKey[] sortBy,
boolean criticality)
Constructs a control to sort on a list of sort keys.
|
SortControl(String[] sortBy,
boolean criticality)
Constructs a control to sort on a list of attributes in ascending order.
|
SortControl(String sortBy,
boolean criticality)
Constructs a control to sort on a single attribute in ascending order.
|
SortResponseControl(String id,
boolean criticality,
byte[] value)
Constructs a control to indicate the outcome of a sort request.
|
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
ServerSocketFactory.createServerSocket()
Returns an unbound server socket.
|
abstract ServerSocket |
ServerSocketFactory.createServerSocket(int port)
Returns a server socket bound to the specified port.
|
abstract ServerSocket |
ServerSocketFactory.createServerSocket(int port,
int backlog)
Returns a server socket bound to the specified port, and uses the
specified connection backlog.
|
abstract ServerSocket |
ServerSocketFactory.createServerSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket bound to the specified port,
with a specified listen backlog and local IP.
|
Socket |
SocketFactory.createSocket()
Creates an unconnected socket.
|
abstract Socket |
SocketFactory.createSocket(InetAddress host,
int port)
Creates a socket and connects it to the specified port number
at the specified address.
|
abstract Socket |
SocketFactory.createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Creates a socket and connect it to the specified remote address
on the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(String host,
int port)
Creates a socket and connects it to the specified remote host
at the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(String host,
int port,
InetAddress localHost,
int localPort)
Creates a socket and connects it to the specified remote host
on the specified remote port.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SSLException
Indicates some kind of error detected by an SSL subsystem.
|
class |
SSLHandshakeException
Indicates that the client and server could not negotiate the
desired level of security.
|
class |
SSLKeyException
Reports a bad SSL key.
|
class |
SSLPeerUnverifiedException
Indicates that the peer's identity has not been verified.
|
class |
SSLProtocolException
Reports an error in the operation of the SSL protocol.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Socket |
SSLSocketFactory.createSocket(Socket s,
String host,
int port,
boolean autoClose)
Returns a socket layered over an existing socket connected to the named
host, at the given port.
|
abstract void |
SSLSocket.startHandshake()
Starts an SSL handshake on this connection.
|
| Constructor and Description |
|---|
SSLServerSocket()
Used only by subclasses.
|
SSLServerSocket(int port)
Used only by subclasses.
|
SSLServerSocket(int port,
int backlog)
Used only by subclasses.
|
SSLServerSocket(int port,
int backlog,
InetAddress address)
Used only by subclasses.
|
SSLSocket(InetAddress address,
int port)
Used only by subclasses.
|
SSLSocket(InetAddress address,
int port,
InetAddress clientAddress,
int clientPort)
Used only by subclasses.
|
SSLSocket(String host,
int port)
Used only by subclasses.
|
SSLSocket(String host,
int port,
InetAddress clientAddress,
int clientPort)
Used only by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
Doc |
MultiDoc.getDoc()
Obtain the current doc object.
|
Object |
Doc.getPrintData()
Obtains the print data representation object that contains this doc
object's piece of print data in the format corresponding to the
supported doc flavor.
|
Object |
SimpleDoc.getPrintData() |
Reader |
Doc.getReaderForText()
Obtains a reader for extracting character print data from this doc.
|
Reader |
SimpleDoc.getReaderForText()
Obtains a reader for extracting character print data from this doc.
|
InputStream |
Doc.getStreamForBytes()
Obtains an input stream for extracting byte print data from this
doc.
|
InputStream |
SimpleDoc.getStreamForBytes()
Obtains an input stream for extracting byte print data from
this doc.
|
MultiDoc |
MultiDoc.next()
Go to the multidoc object that contains the next doc object in the
sequence of doc objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StubDelegate.readObject(Stub self,
ObjectInputStream s)
Delegation call for
Stub.readObject(java.io.ObjectInputStream) . |
void |
StubDelegate.writeObject(Stub self,
ObjectOutputStream s)
Delegation call for
Stub.writeObject(java.io.ObjectOutputStream) . |
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
SslRMIServerSocketFactory.createServerSocket(int port)
Creates a server socket that accepts SSL connections
configured according to this factory's SSL socket configuration
parameters.
|
Socket |
SslRMIClientSocketFactory.createSocket(String host,
int port)
Creates an SSL socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CallbackHandler.handle(Callback[] callbacks)
Retrieve or display the information requested in the
provided Callbacks.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AuthenticationException
This exception is thrown by a SASL mechanism implementation
to indicate that the SASL
exchange has failed due to reasons related to authentication, such as
an invalid identity, passphrase, or key.
|
class |
SaslException
This class represents an error that has occurred when using SASL.
|
| Modifier and Type | Method and Description |
|---|---|
static MidiFileFormat |
MidiSystem.getMidiFileFormat(File file)
Obtains the MIDI file format of the specified
File . |
static MidiFileFormat |
MidiSystem.getMidiFileFormat(InputStream stream)
Obtains the MIDI file format of the data in the specified input stream.
|
static MidiFileFormat |
MidiSystem.getMidiFileFormat(URL url)
Obtains the MIDI file format of the data in the specified URL.
|
static Sequence |
MidiSystem.getSequence(File file)
Obtains a MIDI sequence from the specified
File . |
static Sequence |
MidiSystem.getSequence(InputStream stream)
Obtains a MIDI sequence from the specified input stream.
|
static Sequence |
MidiSystem.getSequence(URL url)
Obtains a MIDI sequence from the specified URL.
|
static Soundbank |
MidiSystem.getSoundbank(File file)
Constructs a
Soundbank by reading it from the specified
File . |
static Soundbank |
MidiSystem.getSoundbank(InputStream stream)
Constructs a MIDI sound bank by reading it from the specified stream.
|
static Soundbank |
MidiSystem.getSoundbank(URL url)
Constructs a
Soundbank by reading it from the specified URL. |
void |
Sequencer.setSequence(InputStream stream)
Sets the current sequence on which the sequencer operates.
|
static int |
MidiSystem.write(Sequence in,
int type,
File out)
Writes a stream of bytes representing a file of the MIDI file type
indicated to the external file provided.
|
static int |
MidiSystem.write(Sequence in,
int fileType,
OutputStream out)
Writes a stream of bytes representing a file of the MIDI file type
indicated to the output stream provided.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MidiFileFormat |
MidiFileReader.getMidiFileFormat(File file)
Obtains the MIDI file format of the
File provided. |
abstract MidiFileFormat |
MidiFileReader.getMidiFileFormat(InputStream stream)
Obtains the MIDI file format of the input stream provided.
|
abstract MidiFileFormat |
MidiFileReader.getMidiFileFormat(URL url)
Obtains the MIDI file format of the URL provided.
|
abstract Sequence |
MidiFileReader.getSequence(File file)
Obtains a MIDI sequence from the
File provided. |
abstract Sequence |
MidiFileReader.getSequence(InputStream stream)
Obtains a MIDI sequence from the input stream provided.
|
abstract Sequence |
MidiFileReader.getSequence(URL url)
Obtains a MIDI sequence from the URL provided.
|
abstract Soundbank |
SoundbankReader.getSoundbank(File file)
Obtains a soundbank object from the
File provided. |
abstract Soundbank |
SoundbankReader.getSoundbank(InputStream stream)
Obtains a soundbank object from the
InputStream provided. |
abstract Soundbank |
SoundbankReader.getSoundbank(URL url)
Obtains a soundbank object from the URL provided.
|
abstract int |
MidiFileWriter.write(Sequence in,
int fileType,
File out)
Writes a stream of bytes representing a MIDI file of the file type
indicated to the external file provided.
|
abstract int |
MidiFileWriter.write(Sequence in,
int fileType,
OutputStream out)
Writes a stream of bytes representing a MIDI file of the file type
indicated to the output stream provided.
|
| Modifier and Type | Method and Description |
|---|---|
int |
AudioInputStream.available()
Returns the maximum number of bytes that can be read (or skipped over) from this
audio input stream without blocking.
|
void |
AudioInputStream.close()
Closes this audio input stream and releases any system resources associated
with the stream.
|
static AudioFileFormat |
AudioSystem.getAudioFileFormat(File file)
Obtains the audio file format of the specified
File . |
static AudioFileFormat |
AudioSystem.getAudioFileFormat(InputStream stream)
Obtains the audio file format of the provided input stream.
|
static AudioFileFormat |
AudioSystem.getAudioFileFormat(URL url)
Obtains the audio file format of the specified URL.
|
static AudioInputStream |
AudioSystem.getAudioInputStream(File file)
Obtains an audio input stream from the provided
File . |
static AudioInputStream |
AudioSystem.getAudioInputStream(InputStream stream)
Obtains an audio input stream from the provided input stream.
|
static AudioInputStream |
AudioSystem.getAudioInputStream(URL url)
Obtains an audio input stream from the URL provided.
|
void |
Clip.open(AudioInputStream stream)
Opens the clip with the format and audio data present in the provided audio
input stream.
|
int |
AudioInputStream.read()
Reads the next byte of data from the audio input stream.
|
int |
AudioInputStream.read(byte[] b)
Reads some number of bytes from the audio input stream and stores them into
the buffer array
b . |
int |
AudioInputStream.read(byte[] b,
int off,
int len)
Reads up to a specified maximum number of bytes of data from the audio
stream, putting them into the given byte array.
|
void |
AudioInputStream.reset()
Repositions this audio input stream to the position it had at the time its
mark method was last invoked. |
long |
AudioInputStream.skip(long n)
Skips over and discards a specified number of bytes from this
audio input stream.
|
static int |
AudioSystem.write(AudioInputStream stream,
AudioFileFormat.Type fileType,
File out)
Writes a stream of bytes representing an audio file of the specified file type
to the external file provided.
|
static int |
AudioSystem.write(AudioInputStream stream,
AudioFileFormat.Type fileType,
OutputStream out)
Writes a stream of bytes representing an audio file of the specified file type
to the output stream provided.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioFileFormat |
AudioFileReader.getAudioFileFormat(File file)
Obtains the audio file format of the
File provided. |
abstract AudioFileFormat |
AudioFileReader.getAudioFileFormat(InputStream stream)
Obtains the audio file format of the input stream provided.
|
abstract AudioFileFormat |
AudioFileReader.getAudioFileFormat(URL url)
Obtains the audio file format of the URL provided.
|
abstract AudioInputStream |
AudioFileReader.getAudioInputStream(File file)
Obtains an audio input stream from the
File provided. |
abstract AudioInputStream |
AudioFileReader.getAudioInputStream(InputStream stream)
Obtains an audio input stream from the input stream provided.
|
abstract AudioInputStream |
AudioFileReader.getAudioInputStream(URL url)
Obtains an audio input stream from the URL provided.
|
abstract int |
AudioFileWriter.write(AudioInputStream stream,
AudioFileFormat.Type fileType,
File out)
Writes a stream of bytes representing an audio file of the file format
indicated to the external file provided.
|
abstract int |
AudioFileWriter.write(AudioInputStream stream,
AudioFileFormat.Type fileType,
OutputStream out)
Writes a stream of bytes representing an audio file of the file type
indicated to the output stream provided.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WebRowSet.readXml(InputStream iStream)
Reads a stream based XML input to populate this
WebRowSet
object. |
void |
WebRowSet.writeXml(OutputStream oStream)
Writes the data, properties, and metadata for this
WebRowSet object
to the given OutputStream object in XML format. |
void |
WebRowSet.writeXml(ResultSet rs,
OutputStream oStream)
Populates this
WebRowSet object with
the contents of the given ResultSet object and writes its
data, properties, and metadata
to the given OutputStream object in XML format. |
| Modifier and Type | Method and Description |
|---|---|
void |
ProgressMonitorInputStream.close()
Overrides
FilterInputStream.close
to close the progress monitor as well as the stream. |
protected InputStream |
JEditorPane.getStream(URL page)
Fetches a stream for the given URL, which is about to
be loaded by the
setPage method. |
int |
ProgressMonitorInputStream.read()
Overrides
FilterInputStream.read
to update the progress monitor after the read. |
int |
ProgressMonitorInputStream.read(byte[] b)
Overrides
FilterInputStream.read
to update the progress monitor after the read. |
int |
ProgressMonitorInputStream.read(byte[] b,
int off,
int len)
Overrides
FilterInputStream.read
to update the progress monitor after the read. |
void |
JEditorPane.read(InputStream in,
Object desc)
This method initializes from a stream.
|
void |
ProgressMonitorInputStream.reset()
Overrides
FilterInputStream.reset
to reset the progress monitor as well as the stream. |
void |
JEditorPane.setPage(String url)
Sets the current URL being displayed.
|
void |
JEditorPane.setPage(URL page)
Sets the current URL being displayed.
|
long |
ProgressMonitorInputStream.skip(long n)
Overrides
FilterInputStream.skip
to update the progress monitor after the skip. |
| Constructor and Description |
|---|
JEditorPane(String url)
Creates a
JEditorPane based on a string containing
a URL specification. |
JEditorPane(URL initialPage)
Creates a
JEditorPane based on a specified URL for input. |
| Modifier and Type | Method and Description |
|---|---|
abstract File |
FileSystemView.createNewFolder(File containingDir)
Creates a new folder with a default folder name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SynthLookAndFeel.load(URL url)
Loads the set of
SynthStyle s that will be used by
this SynthLookAndFeel . |
| Modifier and Type | Class and Description |
|---|---|
class |
ChangedCharSetException
ChangedCharSetException as the name indicates is an exception
thrown when the charset is changed.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractWriter.indent()
Does indentation.
|
protected void |
AbstractWriter.output(char[] content,
int start,
int length)
The last stop in writing out content.
|
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.
|
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(Reader 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.
|
void |
DefaultEditorKit.read(Reader in,
Document doc,
int pos)
Inserts content from the given stream, which will be
treated as plain text.
|
void |
JTextComponent.read(Reader in,
Object desc)
Initializes from a stream.
|
void |
StyleContext.readAttributes(ObjectInputStream in,
MutableAttributeSet a)
Context-specific handling of reading in attributes
|
static void |
StyleContext.readAttributeSet(ObjectInputStream in,
MutableAttributeSet a)
Reads a set of attributes from the given object input
stream that have been previously written out with
writeAttributeSet . |
protected void |
AbstractWriter.text(Element elem)
Writes out text.
|
protected abstract void |
AbstractWriter.write()
This abstract method needs to be implemented
by subclasses.
|
protected void |
AbstractWriter.write(char ch)
Writes out a character.
|
protected void |
AbstractWriter.write(char[] chars,
int startIndex,
int length)
All write methods call into this one.
|
abstract void |
EditorKit.write(OutputStream out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream
in a format appropriate for this kind of content handler.
|
void |
DefaultEditorKit.write(OutputStream out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream
in a format appropriate for this kind of content handler.
|
protected void |
AbstractWriter.write(String content)
Writes out a string.
|
void |
JTextComponent.write(Writer out)
Stores the contents of the model into the given
stream.
|
abstract void |
EditorKit.write(Writer out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream
in a format appropriate for this kind of content handler.
|
void |
DefaultEditorKit.write(Writer out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream
as plain text.
|
protected void |
AbstractWriter.writeAttributes(AttributeSet attr)
Writes out the set of attributes as "
|
void |
StyleContext.writeAttributes(ObjectOutputStream out,
AttributeSet a)
Context-specific handling of writing out attributes
|
static void |
StyleContext.writeAttributeSet(ObjectOutputStream out,
AttributeSet a)
Writes a set of attributes to the given object stream
for the purpose of serialization.
|
protected void |
AbstractWriter.writeLineSeparator()
Writes the line separator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
HTMLWriter.closeOutUnwantedEmbeddedTags(AttributeSet attr)
Searches the attribute set and for each tag
that is stored in the tag vector.
|
protected void |
HTMLWriter.comment(Element elem)
Writes out comments.
|
protected void |
HTMLWriter.emptyTag(Element elem)
Writes out all empty elements (all tags that have no
corresponding end tag).
|
protected void |
MinimalHTMLWriter.endFontTag()
This is no longer used, instead <span> will be written out.
|
protected void |
HTMLWriter.endTag(Element elem)
Writes out an end tag for the element.
|
void |
HTMLDocument.insertAfterEnd(Element elem,
String htmlText)
Inserts the HTML specified as a string after the the end of the
given element.
|
void |
HTMLDocument.insertAfterStart(Element elem,
String htmlText)
Inserts the HTML specified as a string at the start
of the element.
|
void |
HTMLDocument.insertBeforeEnd(Element elem,
String htmlText)
Inserts the HTML specified as a string at the end of
the element.
|
void |
HTMLDocument.insertBeforeStart(Element elem,
String htmlText)
Inserts the HTML specified as a string before the start of
the given element.
|
void |
HTMLEditorKit.insertHTML(HTMLDocument doc,
int offset,
String html,
int popDepth,
int pushDepth,
HTML.Tag insertTag)
Inserts HTML into an existing document.
|
void |
StyleSheet.loadRules(Reader in,
URL ref)
Loads a set of rules that have been specified in terms of
CSS1 grammar.
|
protected void |
HTMLWriter.output(char[] chars,
int start,
int length)
This method is overriden to map any character entities, such as
< to <.
|
abstract void |
HTMLEditorKit.Parser.parse(Reader r,
HTMLEditorKit.ParserCallback cb,
boolean ignoreCharSet)
Parse the given stream and drive the given callback
with the results of the parse.
|
void |
HTMLEditorKit.read(Reader in,
Document doc,
int pos)
Inserts content from the given stream.
|
protected void |
HTMLWriter.selectContent(AttributeSet attr)
Writes out the content of the SELECT form element.
|
void |
HTMLDocument.setInnerHTML(Element elem,
String htmlText)
Replaces the children of the given element with the contents
specified as an HTML string.
|
void |
HTMLDocument.setOuterHTML(Element elem,
String htmlText)
Replaces the given element in the parent with the contents
specified as an HTML string.
|
protected void |
MinimalHTMLWriter.startFontTag(String style)
This is no longer used, instead <span> will be written out.
|
protected void |
HTMLWriter.startTag(Element elem)
Writes out a start tag for the element.
|
protected void |
HTMLWriter.text(Element elem)
Writes out text.
|
protected void |
MinimalHTMLWriter.text(Element elem)
Writes out text.
|
protected void |
HTMLWriter.textAreaContent(AttributeSet attr)
Writes out text that is contained in a TEXTAREA form
element.
|
void |
HTMLWriter.write()
Iterates over the
Element tree and controls the writing out of
all the tags and its attributes.
|
void |
MinimalHTMLWriter.write()
Generates HTML output
from a StyledDocument.
|
void |
HTMLEditorKit.write(Writer out,
Document doc,
int pos,
int len)
Write content from a document to the given stream
in a format appropriate for this kind of content handler.
|
protected void |
HTMLWriter.writeAttributes(AttributeSet attr)
Writes out the attribute set.
|
protected void |
MinimalHTMLWriter.writeAttributes(AttributeSet attr)
Writes out all the attributes for the
following types:
StyleConstants.ParagraphConstants,
StyleConstants.CharacterConstants,
StyleConstants.FontConstants,
StyleConstants.ColorConstants.
|
protected void |
MinimalHTMLWriter.writeBody()
Iterates over the elements in the document
and processes elements based on whether they are
branch elements or leaf elements.
|
protected void |
MinimalHTMLWriter.writeComponent(Element elem)
Responsible for handling Component Elements;
deliberately unimplemented.
|
protected void |
MinimalHTMLWriter.writeContent(Element elem,
boolean needsIndenting)
Writes out the attribute set
in an HTML-compliant manner.
|
protected void |
HTMLWriter.writeEmbeddedTags(AttributeSet attr)
Searches for embedded tags in the AttributeSet
and writes them out.
|
protected void |
MinimalHTMLWriter.writeEndParagraph()
Emits an end tag for a <p>
tag.
|
protected void |
MinimalHTMLWriter.writeEndTag(String endTag)
Writes out an end tag appropriately
indented.
|
protected void |
MinimalHTMLWriter.writeHeader()
Writes out the <head> and <style>
tags, and then invokes writeStyles() to write
out all the named styles as the content of the
<style> tag.
|
protected void |
MinimalHTMLWriter.writeHTMLTags(AttributeSet attr)
Generates
bold <b>, italic <i>, and <u> tags for the
text based on its attribute settings.
|
protected void |
MinimalHTMLWriter.writeImage(Element elem)
Responsible for handling Icon Elements;
deliberately unimplemented.
|
protected void |
MinimalHTMLWriter.writeLeaf(Element elem)
Responsible for writing out other non-text leaf
elements.
|
protected void |
HTMLWriter.writeLineSeparator()
Writes the line separator.
|
protected void |
MinimalHTMLWriter.writeNonHTMLAttributes(AttributeSet attr)
Writes out the remaining
character-level attributes (attributes other than bold,
italic, and underline) in an HTML-compliant way.
|
protected void |
HTMLWriter.writeOption(Option option)
Writes out the content of the Option form element.
|
protected void |
MinimalHTMLWriter.writeStartParagraph(Element elem)
Emits the start tag for a paragraph.
|
protected void |
MinimalHTMLWriter.writeStartTag(String tag)
Writes out a start tag appropriately
indented.
|
protected void |
MinimalHTMLWriter.writeStyles()
Writes out all the named styles as the
content of the <style> tag.
|
| Modifier and Type | Method and Description |
|---|---|
static DTD |
DTD.getDTD(String name)
Returns a DTD with the specified
name . |
void |
Parser.parse(Reader in)
Parse an HTML stream, given a DTD.
|
void |
DocumentParser.parse(Reader in,
HTMLEditorKit.ParserCallback callback,
boolean ignoreCharSet) |
void |
ParserDelegator.parse(Reader r,
HTMLEditorKit.ParserCallback cb,
boolean ignoreCharSet) |
String |
Parser.parseDTDMarkup()
Parses th Document Declaration Type markup declaration.
|
protected boolean |
Parser.parseMarkupDeclarations(StringBuffer strBuff)
Parse markup declarations.
|
void |
DTD.read(DataInputStream in)
Recreates a DTD from an archived format.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
RTFEditorKit.read(Reader in,
Document doc,
int pos)
Insert content from the given stream, which will be
treated as plain text.
|
void |
RTFEditorKit.write(OutputStream out,
Document doc,
int pos,
int len)
Write content from a document to the given stream
in a format appropriate for this kind of content handler.
|
void |
RTFEditorKit.write(Writer out,
Document doc,
int pos,
int len)
Write content from a document to the given stream
as plain text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ForwardingJavaFileManager.close() |
void |
JavaFileManager.close()
Releases any resources opened by this file manager directly or
indirectly.
|
void |
ForwardingJavaFileManager.flush() |
void |
JavaFileManager.flush()
Flushes any resources opened for output by this file manager
directly or indirectly.
|
CharSequence |
ForwardingFileObject.getCharContent(boolean ignoreEncodingErrors) |
CharSequence |
SimpleJavaFileObject.getCharContent(boolean ignoreEncodingErrors)
This implementation always throws UnsupportedOperationException.
|
CharSequence |
FileObject.getCharContent(boolean ignoreEncodingErrors)
Gets the character content of this file object, if available.
|
FileObject |
ForwardingJavaFileManager.getFileForInput(JavaFileManager.Location location,
String packageName,
String relativeName) |
FileObject |
JavaFileManager.getFileForInput(JavaFileManager.Location location,
String packageName,
String relativeName)
Gets a file object for input
representing the specified relative
name in the specified package in the given location.
|
FileObject |
ForwardingJavaFileManager.getFileForOutput(JavaFileManager.Location location,
String packageName,
String relativeName,
FileObject sibling) |
FileObject |
JavaFileManager.getFileForOutput(JavaFileManager.Location location,
String packageName,
String relativeName,
FileObject sibling)
Gets a file object for output
representing the specified relative
name in the specified package in the given location.
|
JavaFileObject |
ForwardingJavaFileManager.getJavaFileForInput(JavaFileManager.Location location,
String className,
JavaFileObject.Kind kind) |
JavaFileObject |
JavaFileManager.getJavaFileForInput(JavaFileManager.Location location,
String className,
JavaFileObject.Kind kind)
Gets a file object for input
representing the specified class of the specified kind in the
given location.
|
JavaFileObject |
ForwardingJavaFileManager.getJavaFileForOutput(JavaFileManager.Location location,
String className,
JavaFileObject.Kind kind,
FileObject sibling) |
JavaFileObject |
JavaFileManager.getJavaFileForOutput(JavaFileManager.Location location,
String className,
JavaFileObject.Kind kind,
FileObject sibling)
Gets a file object for output
representing the specified class of the specified kind in the
given location.
|
Iterable<JavaFileObject> |
ForwardingJavaFileManager.list(JavaFileManager.Location location,
String packageName,
Set<JavaFileObject.Kind> kinds,
boolean recurse) |
Iterable<JavaFileObject> |
JavaFileManager.list(JavaFileManager.Location location,
String packageName,
Set<JavaFileObject.Kind> kinds,
boolean recurse)
Lists all file objects matching the given criteria in the given
location.
|
InputStream |
ForwardingFileObject.openInputStream() |
InputStream |
SimpleJavaFileObject.openInputStream()
This implementation always throws UnsupportedOperationException.
|
InputStream |
FileObject.openInputStream()
Gets an InputStream for this file object.
|
OutputStream |
ForwardingFileObject.openOutputStream() |
OutputStream |
SimpleJavaFileObject.openOutputStream()
This implementation always throws UnsupportedOperationException.
|
OutputStream |
FileObject.openOutputStream()
Gets an OutputStream for this file object.
|
Reader |
ForwardingFileObject.openReader(boolean ignoreEncodingErrors) |
Reader |
SimpleJavaFileObject.openReader(boolean ignoreEncodingErrors)
Wraps the result of SimpleJavaFileObject.getCharContent(boolean) in a Reader.
|
Reader |
FileObject.openReader(boolean ignoreEncodingErrors)
Gets a reader for this object.
|
Writer |
ForwardingFileObject.openWriter() |
Writer |
SimpleJavaFileObject.openWriter()
Wraps the result of openOutputStream in a Writer.
|
Writer |
FileObject.openWriter()
Gets a Writer for this file object.
|
void |
StandardJavaFileManager.setLocation(JavaFileManager.Location location,
Iterable<? extends File> path)
Associates the given path with the given location.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InvalidTransactionException
This exception indicates that the request carried an invalid transaction
context.
|
class |
TransactionRequiredException
This exception indicates that a request carried a null transaction context,
but the target object requires an activate transaction.
|
class |
TransactionRolledbackException
This exception indicates that the transaction associated with processing
of the request has been rolled back, or marked to roll back.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Result |
SchemaOutputResolver.createOutput(String namespaceUri,
String suggestedFileName)
Decides where the schema file (of the given namespace URI)
will be written, and return it as a
Result object. |
void |
JAXBContext.generateSchema(SchemaOutputResolver outputResolver)
Generates the schema documents for this context.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
DocumentBuilder.parse(File f)
Parse the content of the given file as an XML document
and return a new DOM
Document object. |
void |
SAXParser.parse(File f,
DefaultHandler dh)
Parse the content of the file specified as XML using the
specified
DefaultHandler . |
void |
SAXParser.parse(File f,
HandlerBase hb)
Parse the content of the file specified as XML using the
specified
HandlerBase . |
abstract Document |
DocumentBuilder.parse(InputSource is)
Parse the content of the given input source as an XML document
and return a new DOM
Document object. |
void |
SAXParser.parse(InputSource is,
DefaultHandler dh)
Parse the content given
InputSource
as XML using the specified
DefaultHandler . |
void |
SAXParser.parse(InputSource is,
HandlerBase hb)
Parse the content given
InputSource
as XML using the specified
HandlerBase . |
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. |
Document |
DocumentBuilder.parse(String uri)
Parse the content of the given URI as an XML document
and return a new DOM
Document object. |
void |
SAXParser.parse(String uri,
DefaultHandler dh)
Parse the content described by the giving Uniform Resource
Identifier (URI) as XML using the specified
DefaultHandler . |
void |
SAXParser.parse(String uri,
HandlerBase hb)
Parse the content described by the giving Uniform Resource
Identifier (URI) as XML using the specified
HandlerBase . |
| Modifier and Type | Method and Description |
|---|---|
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 |
SOAPMessage.writeTo(OutputStream out)
Writes this
SOAPMessage object to the given output
stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
Validator.validate(Source source)
Validates the specified input.
|
abstract void |
Validator.validate(Source source,
Result result)
Validates the specified input and send the augmented validation
result to the specified output.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
HttpExchange.close()
This must be called to end an exchange.
|
abstract InputStream |
HttpExchange.getRequestBody()
Returns a stream from which the request body can be read.
|
abstract OutputStream |
HttpExchange.getResponseBody()
Returns a stream to which the response body must be
written.
|
abstract void |
HttpHandler.handle(HttpExchange exchange)
Handles a given request and generates an appropriate response.
|
| Modifier and Type | Method and Description |
|---|---|
int |
InputStream.read() |
void |
OutputStream.write(int b)
Writes an integer (length of arrays) onto this stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Parser.parse(InputSource source)
Deprecated.
Parse an XML document.
|
void |
XMLReader.parse(InputSource input)
Parse an XML document.
|
void |
Parser.parse(String systemId)
Deprecated.
Parse an XML document from a system identifier (URI).
|
void |
XMLReader.parse(String systemId)
Parse an XML document from a system identifier (URI).
|
InputSource |
EntityResolver.resolveEntity(String publicId,
String systemId)
Allow the application to resolve external entities.
|
| Modifier and Type | Method and Description |
|---|---|
InputSource |
EntityResolver2.getExternalSubset(String name,
String baseURI)
Allows applications to provide an external subset for documents
that don't explicitly define one.
|
InputSource |
DefaultHandler2.getExternalSubset(String name,
String baseURI)
Tells the parser that if no external subset has been declared
in the document text, none should be used.
|
InputSource |
DefaultHandler2.resolveEntity(String publicId,
String systemId)
Invokes
EntityResolver2.resolveEntity()
with null entity name and base URI. |
InputSource |
EntityResolver2.resolveEntity(String name,
String publicId,
String baseURI,
String systemId)
Allows applications to map references to external entities into input
sources, or tell the parser it should use conventional URI resolution.
|
InputSource |
DefaultHandler2.resolveEntity(String name,
String publicId,
String baseURI,
String systemId)
Tells the parser to resolve the systemId against the baseURI
and read the entity text from that resulting absolute URI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XMLReaderAdapter.parse(InputSource input)
Parse the document.
|
void |
ParserAdapter.parse(InputSource input)
Parse an XML document.
|
void |
XMLFilterImpl.parse(InputSource input)
Parse a document.
|
void |
XMLReaderAdapter.parse(String systemId)
Parse the document.
|
void |
ParserAdapter.parse(String systemId)
Parse an XML document.
|
void |
XMLFilterImpl.parse(String systemId)
Parse a document.
|
InputSource |
DefaultHandler.resolveEntity(String publicId,
String systemId)
Resolve an external entity.
|
InputSource |
XMLFilterImpl.resolveEntity(String publicId,
String systemId)
Filter an external entity resolution.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.