Uses of Class
org.apache.commons.imaging.common.bytesource.ByteSource
Packages that use ByteSource
Package
Description
The main package for Apache Commons Imaging.
Provides utility classes that are employed across multiple
image formats and sub-packages.
Encapsulates sources from which data may be read.
The BMP image format.
The DCX image format.
The GIF image format.
The ICNS image format.
The ICO/CUR image formats.
The JPEG image format.
JPEG image format decoder.
JPEG image format Exif utilities.
JPEG image format IPTC metadata.
JPEG image format XMP metadata.
The PCX image format.
The PNG image format.
The PNM image format family.
The PSD image format.
The Radiance HDR image format.
Provides classes and methods for reading and writing
Tagged Image File Format (TIFF) files.
The Wireless Application Protocol Bitmap Format image format.
The X BitMap image format.
The X PixMap image format.
ICC color profile.
-
Uses of ByteSource in org.apache.commons.imaging
Methods in org.apache.commons.imaging with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
ImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) Write the ImageInfo and format-specific information for the image content of the specified byte source to a PrintWriterfinal String
ImageParser.dumpImageFile
(ByteSource byteSource) Write the ImageInfo and format-specific information for the image content of the specified byte source to a string.private static String
Imaging.dumpImageFile
(ByteSource byteSource) ImageParser.getAllBufferedImages
(ByteSource byteSource) Gets all images specified by the byte source (some formats may include multiple images within a single data source).private static List<BufferedImage>
Imaging.getAllBufferedImages
(ByteSource byteSource) abstract BufferedImage
ImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) Gets a buffered image specified by the byte source (for sources that specify multiple images, choice of which image is returned is implementation dependent).private static BufferedImage
Imaging.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) ImageParser.getFormatCompliance
(ByteSource byteSource) Determines the format compliance of the content of the supplied byte source based on rules provided by a specific implementation.private static FormatCompliance
Imaging.getFormatCompliance
(ByteSource byteSource) protected static ICC_Profile
Imaging.getICCProfile
(ByteSource byteSource, Map<String, Object> params) abstract byte[]
ImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) Get an array of bytes describing the International Color Consortium (ICC) specification for the color space of the image contained in the input byteSource.private static byte[]
Imaging.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) final ImageInfo
ImageParser.getImageInfo
(ByteSource byteSource) Get image information from the specified ByteSource.abstract ImageInfo
ImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) Get image information from the specified ByteSource.private static ImageInfo
Imaging.getImageInfo
(ByteSource byteSource, Map<String, Object> params) private static ImageParser
Imaging.getImageParser
(ByteSource byteSource) abstract Dimension
ImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) Get the size of the image described by the specified ByteSource.static Dimension
Imaging.getImageSize
(ByteSource byteSource, Map<String, Object> params) final ImageMetadata
ImageParser.getMetadata
(ByteSource byteSource) Get image metadata from the specified byte source.abstract ImageMetadata
ImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) Get image metadata from the specified byte source.private static ImageMetadata
Imaging.getMetadata
(ByteSource byteSource, Map<String, Object> params) static String
Imaging.getXmpXml
(ByteSource byteSource, Map<String, Object> params) Extracts the embedded XML metadata as an XML string.static ImageFormat
Imaging.guessFormat
(ByteSource byteSource) Attempts to determine the image format of a file based on its "magic numbers," the first bytes of the data. -
Uses of ByteSource in org.apache.commons.imaging.common
Methods in org.apache.commons.imaging.common with parameters of type ByteSource -
Uses of ByteSource in org.apache.commons.imaging.common.bytesource
Subclasses of ByteSource in org.apache.commons.imaging.common.bytesourceModifier and TypeClassDescriptionclass
class
class
-
Uses of ByteSource in org.apache.commons.imaging.formats.bmp
Methods in org.apache.commons.imaging.formats.bmp with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
BmpImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) BmpImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) BmpImageParser.getFormatCompliance
(ByteSource byteSource) byte[]
BmpImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) BmpImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) BmpImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) BmpImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private BmpHeaderInfo
BmpImageParser.readBmpHeaderInfo
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.dcx
Methods in org.apache.commons.imaging.formats.dcx with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
DcxImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) DcxImageParser.getAllBufferedImages
(ByteSource byteSource) final BufferedImage
DcxImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
DcxImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) DcxImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) DcxImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) DcxImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private DcxImageParser.DcxHeader
DcxImageParser.readDcxHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.gif
Methods in org.apache.commons.imaging.formats.gif with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
GifImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) GifImageParser.getAllBufferedImages
(ByteSource byteSource) GifImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) GifImageParser.getFormatCompliance
(ByteSource byteSource) byte[]
GifImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) GifImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) GifImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) GifImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) GifImageParser.getXmpXml
(ByteSource byteSource, Map<String, Object> params) Extracts embedded XML metadata as XML string.private GifImageContents
GifImageParser.readFile
(ByteSource byteSource, boolean stopBeforeImageData) private GifImageContents
GifImageParser.readFile
(ByteSource byteSource, boolean stopBeforeImageData, FormatCompliance formatCompliance) -
Uses of ByteSource in org.apache.commons.imaging.formats.icns
Methods in org.apache.commons.imaging.formats.icns with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
IcnsImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) IcnsImageParser.getAllBufferedImages
(ByteSource byteSource) final BufferedImage
IcnsImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
IcnsImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) IcnsImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) IcnsImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) IcnsImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private IcnsImageParser.IcnsContents
IcnsImageParser.readImage
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.ico
Methods in org.apache.commons.imaging.formats.ico with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
IcoImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) IcoImageParser.getAllBufferedImages
(ByteSource byteSource) final BufferedImage
IcoImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
IcoImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) IcoImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) IcoImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) IcoImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private IcoImageParser.ImageContents
IcoImageParser.readImage
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.jpeg
Methods in org.apache.commons.imaging.formats.jpeg with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
JpegImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) void
JpegUtils.dumpJFIF
(ByteSource byteSource) final BufferedImage
JpegImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) JpegImageParser.getExifMetadata
(ByteSource byteSource, Map<String, Object> params) byte[]
JpegImageParser.getExifRawData
(ByteSource byteSource) byte[]
JpegImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) JpegImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) JpegImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) JpegImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) JpegImageParser.getPhotoshopMetadata
(ByteSource byteSource, Map<String, Object> params) JpegImageParser.getXmpXml
(ByteSource byteSource, Map<String, Object> params) Extracts embedded XML metadata as XML string.boolean
JpegImageParser.hasExifSegment
(ByteSource byteSource) boolean
JpegImageParser.hasIptcSegment
(ByteSource byteSource) boolean
JpegImageParser.hasXmpSegment
(ByteSource byteSource) JpegImageParser.readSegments
(ByteSource byteSource, int[] markers, boolean returnAfterFirst) JpegImageParser.readSegments
(ByteSource byteSource, int[] markers, boolean returnAfterFirst, boolean readEverything) void
JpegUtils.traverseJFIF
(ByteSource byteSource, JpegUtils.Visitor visitor) -
Uses of ByteSource in org.apache.commons.imaging.formats.jpeg.decoder
Methods in org.apache.commons.imaging.formats.jpeg.decoder with parameters of type ByteSource -
Uses of ByteSource in org.apache.commons.imaging.formats.jpeg.exif
Methods in org.apache.commons.imaging.formats.jpeg.exif with parameters of type ByteSourceModifier and TypeMethodDescriptionprivate ExifRewriter.JFIFPieces
ExifRewriter.analyzeJFIF
(ByteSource byteSource) void
ExifRewriter.removeExifMetadata
(ByteSource byteSource, OutputStream os) Reads a Jpeg image, removes all EXIF metadata (by removing the APP1 segment), and writes the result to a stream.void
ExifRewriter.updateExifMetadataLossless
(ByteSource byteSource, OutputStream os, TiffOutputSet outputSet) Reads a Jpeg image, replaces the EXIF metadata and writes the result to a stream.void
ExifRewriter.updateExifMetadataLossy
(ByteSource byteSource, OutputStream os, TiffOutputSet outputSet) Reads a Jpeg image, replaces the EXIF metadata and writes the result to a stream. -
Uses of ByteSource in org.apache.commons.imaging.formats.jpeg.iptc
Methods in org.apache.commons.imaging.formats.jpeg.iptc with parameters of type ByteSourceModifier and TypeMethodDescriptionvoid
JpegIptcRewriter.removeIPTC
(ByteSource byteSource, OutputStream os) Reads a Jpeg image, removes all IPTC data from the App13 segment but leaves the other data in that segment (if present) unchanged and writes the result to a stream.void
JpegIptcRewriter.removeIPTC
(ByteSource byteSource, OutputStream os, boolean removeSegment) Reads a Jpeg image, removes all IPTC data from the App13 segment but leaves the other data in that segment (if present) unchanged (unless removeSegment is true) and writes the result to a stream.void
JpegIptcRewriter.writeIPTC
(ByteSource byteSource, OutputStream os, PhotoshopApp13Data newData) Reads a Jpeg image, replaces the IPTC data in the App13 segment but leaves the other data in that segment (if present) unchanged and writes the result to a stream. -
Uses of ByteSource in org.apache.commons.imaging.formats.jpeg.xmp
Methods in org.apache.commons.imaging.formats.jpeg.xmp with parameters of type ByteSourceModifier and TypeMethodDescriptionprotected JpegRewriter.JFIFPieces
JpegRewriter.analyzeJFIF
(ByteSource byteSource) void
JpegXmpRewriter.removeXmpXml
(ByteSource byteSource, OutputStream os) Reads a Jpeg image, removes all XMP XML (by removing the APP1 segment), and writes the result to a stream.void
JpegXmpRewriter.updateXmpXml
(ByteSource byteSource, OutputStream os, String xmpXml) Reads a Jpeg image, replaces the XMP XML and writes the result to a stream. -
Uses of ByteSource in org.apache.commons.imaging.formats.pcx
Methods in org.apache.commons.imaging.formats.pcx with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
PcxImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) final BufferedImage
PcxImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
PcxImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) PcxImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) PcxImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) PcxImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private int[]
PcxImageParser.read256ColorPaletteFromEndOfFile
(ByteSource byteSource) private BufferedImage
PcxImageParser.readImage
(PcxImageParser.PcxHeader pcxHeader, InputStream is, ByteSource byteSource) private PcxImageParser.PcxHeader
PcxImageParser.readPcxHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.png
Methods in org.apache.commons.imaging.formats.png with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
PngImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) PngImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
PngImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) PngImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) PngImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) PngImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) PngImageParser.getXmpXml
(ByteSource byteSource, Map<String, Object> params) boolean
PngImageParser.hasChunkType
(ByteSource byteSource, ChunkType chunkType) PngImageParser.readChunks
(ByteSource byteSource, ChunkType[] chunkTypes, boolean returnAfterFirst) -
Uses of ByteSource in org.apache.commons.imaging.formats.pnm
Methods in org.apache.commons.imaging.formats.pnm with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
PnmImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) PnmImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
PnmImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) PnmImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) PnmImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) PnmImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private FileInfo
PnmImageParser.readHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.psd
Methods in org.apache.commons.imaging.formats.psd with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
PsdImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) PsdImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) private byte[]
PsdImageParser.getData
(ByteSource byteSource, int section) byte[]
PsdImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) PsdImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) PsdImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) private InputStream
PsdImageParser.getInputStream
(ByteSource byteSource, int section) PsdImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) PsdImageParser.getXmpXml
(ByteSource byteSource, Map<String, Object> params) Extracts embedded XML metadata as XML string.private PsdHeaderInfo
PsdImageParser.readHeader
(ByteSource byteSource) private PsdImageContents
PsdImageParser.readImageContents
(ByteSource byteSource) private List<ImageResourceBlock>
PsdImageParser.readImageResourceBlocks
(ByteSource byteSource, int[] imageResourceIDs, int maxBlocksToRead) -
Uses of ByteSource in org.apache.commons.imaging.formats.rgbe
Methods in org.apache.commons.imaging.formats.rgbe with parameters of type ByteSourceModifier and TypeMethodDescriptionRgbeImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
RgbeImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) RgbeImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) RgbeImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) RgbeImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) Constructors in org.apache.commons.imaging.formats.rgbe with parameters of type ByteSource -
Uses of ByteSource in org.apache.commons.imaging.formats.tiff
Methods in org.apache.commons.imaging.formats.tiff with parameters of type ByteSourceModifier and TypeMethodDescriptionList<byte[]>
TiffImageParser.collectRawImageData
(ByteSource byteSource, Map<String, Object> params) boolean
TiffImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) TiffImageParser.getAllBufferedImages
(ByteSource byteSource) TiffImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) Gets a buffered image specified by the byte source.TiffImageParser.getFormatCompliance
(ByteSource byteSource) byte[]
TiffImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) TiffImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) TiffImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) private JpegImageData
TiffReader.getJpegRawImageData
(ByteSource byteSource, TiffDirectory directory) TiffImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private TiffImageData
TiffReader.getTiffRawImageData
(ByteSource byteSource, TiffDirectory directory) TiffImageParser.getXmpXml
(ByteSource byteSource, Map<String, Object> params) void
TiffReader.read
(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance, TiffReader.Listener listener) TiffReader.readContents
(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance) TiffReader.readDirectories
(ByteSource byteSource, boolean readImageData, FormatCompliance formatCompliance) private void
TiffReader.readDirectories
(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) private boolean
TiffReader.readDirectory
(ByteSource byteSource, long directoryOffset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, boolean ignoreNextDirectory, List<Number> visited) private boolean
TiffReader.readDirectory
(ByteSource byteSource, long offset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, List<Number> visited) TiffReader.readFirstDirectory
(ByteSource byteSource, Map<String, Object> params, boolean readImageData, FormatCompliance formatCompliance) private TiffHeader
TiffReader.readTiffHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.wbmp
Methods in org.apache.commons.imaging.formats.wbmp with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
WbmpImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) final BufferedImage
WbmpImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
WbmpImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) WbmpImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) WbmpImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) WbmpImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private WbmpImageParser.WbmpHeader
WbmpImageParser.readWbmpHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.xbm
Methods in org.apache.commons.imaging.formats.xbm with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
XbmImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) final BufferedImage
XbmImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
XbmImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) XbmImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) XbmImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) XbmImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private XbmImageParser.XbmParseResult
XbmImageParser.parseXbmHeader
(ByteSource byteSource) private XbmImageParser.XbmHeader
XbmImageParser.readXbmHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.formats.xpm
Methods in org.apache.commons.imaging.formats.xpm with parameters of type ByteSourceModifier and TypeMethodDescriptionboolean
XpmImageParser.dumpImageFile
(PrintWriter pw, ByteSource byteSource) final BufferedImage
XpmImageParser.getBufferedImage
(ByteSource byteSource, Map<String, Object> params) byte[]
XpmImageParser.getICCProfileBytes
(ByteSource byteSource, Map<String, Object> params) XpmImageParser.getImageInfo
(ByteSource byteSource, Map<String, Object> params) XpmImageParser.getImageSize
(ByteSource byteSource, Map<String, Object> params) XpmImageParser.getMetadata
(ByteSource byteSource, Map<String, Object> params) private XpmImageParser.XpmParseResult
XpmImageParser.parseXpmHeader
(ByteSource byteSource) private XpmImageParser.XpmHeader
XpmImageParser.readXpmHeader
(ByteSource byteSource) -
Uses of ByteSource in org.apache.commons.imaging.icc
Methods in org.apache.commons.imaging.icc with parameters of type ByteSourceModifier and TypeMethodDescriptionIccProfileParser.getICCProfileInfo
(ByteSource byteSource) boolean
IccProfileParser.issRGB
(ByteSource byteSource)