Class RgbeInfo
- java.lang.Object
-
- org.apache.commons.imaging.formats.rgbe.RgbeInfo
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class RgbeInfo extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]HEADERprivate intheightprivate java.io.InputStreaminprivate GenericImageMetadatametadataprivate static java.util.regex.PatternRESOLUTION_STRINGprivate static byte[]TWO_TWOprivate intwidth
-
Constructor Summary
Constructors Constructor Description RgbeInfo(ByteSource byteSource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private static voiddecompress(java.io.InputStream in, byte[] out)(package private) intgetHeight()(package private) ImageMetadatagetMetadata()(package private) float[][]getPixelData()(package private) intgetWidth()private voidreadDimensions()private voidreadMetadata()
-
-
-
Field Detail
-
HEADER
private static final byte[] HEADER
-
RESOLUTION_STRING
private static final java.util.regex.Pattern RESOLUTION_STRING
-
TWO_TWO
private static final byte[] TWO_TWO
-
in
private final java.io.InputStream in
-
metadata
private GenericImageMetadata metadata
-
width
private int width
-
height
private int height
-
-
Constructor Detail
-
RgbeInfo
RgbeInfo(ByteSource byteSource) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
decompress
private static void decompress(java.io.InputStream in, byte[] out) throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getHeight
int getHeight() throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
getMetadata
ImageMetadata getMetadata() throws java.io.IOException, ImagingException
- Throws:
java.io.IOExceptionImagingException
-
getPixelData
float[][] getPixelData() throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
getWidth
int getWidth() throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
readDimensions
private void readDimensions() throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
readMetadata
private void readMetadata() throws java.io.IOException, ImagingException- Throws:
java.io.IOExceptionImagingException
-
-