Package mil.nga.tiff
Class TiffReader
- java.lang.Object
-
- mil.nga.tiff.TiffReader
-
public class TiffReader extends Object
TIFF reader- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description TiffReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TIFFImage
readTiff(byte[] bytes)
Read a TIFF from the bytesstatic TIFFImage
readTiff(byte[] bytes, boolean cache)
Read a TIFF from the bytesstatic TIFFImage
readTiff(File file)
Read a TIFF from a filestatic TIFFImage
readTiff(File file, boolean cache)
Read a TIFF from a filestatic TIFFImage
readTiff(InputStream stream)
Read a TIFF from an input streamstatic TIFFImage
readTiff(InputStream stream, boolean cache)
Read a TIFF from an input streamstatic TIFFImage
readTiff(ByteReader reader)
Read a TIFF from the byte readerstatic TIFFImage
readTiff(ByteReader reader, boolean cache)
Read a TIFF from the byte reader
-
-
-
Method Detail
-
readTiff
public static TIFFImage readTiff(File file) throws IOException
Read a TIFF from a file- Parameters:
file
- TIFF file- Returns:
- TIFF image
- Throws:
IOException
- upon failure to read
-
readTiff
public static TIFFImage readTiff(File file, boolean cache) throws IOException
Read a TIFF from a file- Parameters:
file
- TIFF filecache
- true to cache tiles and strips- Returns:
- TIFF image
- Throws:
IOException
- upon failure to read
-
readTiff
public static TIFFImage readTiff(InputStream stream) throws IOException
Read a TIFF from an input stream- Parameters:
stream
- TIFF input stream- Returns:
- TIFF image
- Throws:
IOException
- upon failure to read
-
readTiff
public static TIFFImage readTiff(InputStream stream, boolean cache) throws IOException
Read a TIFF from an input stream- Parameters:
stream
- TIFF input streamcache
- true to cache tiles and strips- Returns:
- TIFF image
- Throws:
IOException
- upon failure to read
-
readTiff
public static TIFFImage readTiff(byte[] bytes)
Read a TIFF from the bytes- Parameters:
bytes
- TIFF bytes- Returns:
- TIFF image
-
readTiff
public static TIFFImage readTiff(byte[] bytes, boolean cache)
Read a TIFF from the bytes- Parameters:
bytes
- TIFF bytescache
- true to cache tiles and strips- Returns:
- TIFF image
-
readTiff
public static TIFFImage readTiff(ByteReader reader)
Read a TIFF from the byte reader- Parameters:
reader
- byte reader- Returns:
- TIFF image
-
readTiff
public static TIFFImage readTiff(ByteReader reader, boolean cache)
Read a TIFF from the byte reader- Parameters:
reader
- byte readercache
- true to cache tiles and strips- Returns:
- TIFF image
-
-