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