visad.data.tiff
Class LegacyTiffTools
- java.lang.Object
-
- visad.data.tiff.LegacyTiffTools
-
Deprecated.Use loci.formats.TiffTools
public class LegacyTiffTools extends java.lang.ObjectA utility class for manipulating TIFF files.
-
-
Constructor Summary
Constructors Constructor and Description LegacyTiffTools()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static intbatoi(byte[] inp)Deprecated.Translates up to the first 4 bytes of a byte array to an integer.static int[]getIFDArray(java.io.RandomAccessFile readIn, java.util.Vector v)Deprecated.Items in an IFD can be pointers to arrays of data, and not just single items.static java.util.HashtablegetIFDHash(java.io.RandomAccessFile readIn)Deprecated.static java.util.HashtablegetIFDHash(java.io.RandomAccessFile readIn, int block_id)Deprecated.static double[]getIFDRArray(java.io.RandomAccessFile readIn, java.util.Vector v)Deprecated.Items in an IFD can be pointers to arrays of data, and not just single items.static intgetIFDValue(java.util.Hashtable h, int id)Deprecated.static intgetPhotometricInterpretation(java.io.RandomAccessFile in)Deprecated.static int[]getTIFFDimensions(java.io.RandomAccessFile readIn)Deprecated.static booleanisIFDArray(java.util.Hashtable h, int id)Deprecated.static byte[]lzwUncompress(byte[] input)Deprecated.static voidmain(java.lang.String[] args)Deprecated.
-
-
-
Method Detail
-
getIFDHash
public static java.util.Hashtable getIFDHash(java.io.RandomAccessFile readIn) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getIFDHash
public static java.util.Hashtable getIFDHash(java.io.RandomAccessFile readIn, int block_id) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getIFDArray
public static int[] getIFDArray(java.io.RandomAccessFile readIn, java.util.Vector v) throws java.io.IOExceptionDeprecated.Items in an IFD can be pointers to arrays of data, and not just single items. This will return an array of int containing the data pointed to in the IFD. This does not currently handle the type RATIONAL.- Throws:
java.io.IOException
-
getIFDRArray
public static double[] getIFDRArray(java.io.RandomAccessFile readIn, java.util.Vector v) throws java.io.IOExceptionDeprecated.Items in an IFD can be pointers to arrays of data, and not just single items. This will return an array of int containing the data pointed to in the IFD.- Throws:
java.io.IOException
-
lzwUncompress
public static byte[] lzwUncompress(byte[] input) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getPhotometricInterpretation
public static int getPhotometricInterpretation(java.io.RandomAccessFile in) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
batoi
public static int batoi(byte[] inp)
Deprecated.Translates up to the first 4 bytes of a byte array to an integer.
-
getTIFFDimensions
public static int[] getTIFFDimensions(java.io.RandomAccessFile readIn) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getIFDValue
public static int getIFDValue(java.util.Hashtable h, int id)Deprecated.
-
isIFDArray
public static boolean isIFDArray(java.util.Hashtable h, int id)Deprecated.
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG