Package com.github.jaiimageio.stream

Provides ImageInputStream and ImageOutputStreamclasses for use with the Java Image I/O Framework.

See: Description

  • Interface Summary 
    InterfaceDescription
    StreamSegmentMapper
    An interface for use with the SegmentedImageInputStream class.
  • Class Summary 
    ClassDescription
    FileChannelImageInputStream
    A class which implements ImageInputStream using a FileChannel as the eventual data source.
    FileChannelImageOutputStream
    A class which implements ImageOutputStream using a FileChannel as the eventual data destination.
    RawImageInputStream
    This class defines the content of the ImageInputStream containing several raw images with the same image type: the number of the images, the image type, the offset for the first sample of each image, and the image size information.
    SegmentedImageInputStream
    A SegmentedImageInputStream provides a view of a subset of another ImageInputStream consiting of a series of segments with given starting positions in the source stream and lengths.
    StreamSegment
    A utility class representing a segment within a stream as a long starting position and an int length.

Package com.github.jaiimageio.stream Description

Provides ImageInputStream and ImageOutputStreamclasses for use with the Java Image I/O Framework. TheFileChannel-based classes use the new I/O java.niopackage to accelerate reading and writing of image data.

FileChannelImageInputStream

FileChannelImageInputStream uses memory mapping and NIO viewBuffers to perform its data reading. It may be created by directinstantiation given a FileChannel or via the Java Image I/Oplug-in mechanism, for example fromImageIO.createImageInputStream().

A service provider is also registered which creates anImageInputStream given aReadableByteChannel. If theReadableByteChannel is aFileChannel then the ImageInputStream will be aFileChannelImageInputStream. Otherwise anInputStream will be derived from the Channel andwrapped by a FileCacheImageInputStream if a disk cache is beingused and does not cause a security violation, or aMemoryCacheImageInputStream if disk caching is disabled or notpermitted.

FileChannelImageOutputStream

FileChannelImageOutputStream uses memory mapping and NIO viewBuffers to perform its data reading and direct NIO and viewBuffers to perform its data writing. It may be created by directinstantiation given a FileChannel or via the Java Image I/Oplug-in mechanism, for example fromImageIO.createImageOutputStream().

A service provider is also registered which creates anImageOutputStream given aWritableByteChannel. If theWritableByteChannel is aFileChannel which has been opened for both reading and writing,then the ImageOutputStream will be aFileChannelImageOutputStream. Otherwise anOutputStream will be derived from the Channel andwrapped by a FileCacheImageOutputStream if a disk cache is beingused and does not cause a security violation, or aMemoryCacheImageOutputStream if disk caching is disabled or notpermitted.

RawImageInputStream

A RawImageInputStream provides a data input source for the"raw" image format ImageReader plug-in. TheRawImageInputStream constructor which requires anInputSource parameter allows an application to usea pre-established XML description of the raw image file. This may be usefulin cases where groups of files have the same layout in which case identicalor similar XML description files may be re-used. Such a description filewould be used to create a FileInputStream from which theInputSource would be created.

SegmentedImageInputStream

A SegmentedImageInputStream provides a contiguous view ofanother ImageInputStream which itself consists of a sequence ofdiscontiguous segments containing the image data of interest. Such a streammay be used for example in conjunction with a RawImageInputStreamto enable reading from a data source which has non-image data interspersedwith the image data. For example, an image could be stored in a line-orientedfashion with prefix data such as a time stamp embedded in each line.
Since:
1.0

Copyright © 2018 jai-imageio GitHub group. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14