public class LegacyTiffForm extends Form implements FormFileInformer, FormBlockReader, FormProgressInformer
| uncompressed | compressed (LZW) | |
| single image | read and write | read only (with JAI) |
| multi-page | read and write | read only (with JAI) |
This form requires ImageJ, available from the ImageJ web site. Note that features marked with "(with JAI)" also require the Java Advanced Imaging (JAI) package, available at Sun's Java Advanced Imaging web site. Also, no support for reading TIFF data from URLs is provided. However, the visad.data.jai package provides limited support for importing single-image TIFF data from a URL.
| Constructor and Description |
|---|
LegacyTiffForm()
Deprecated.
Constructs a new TIFF file form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
Data data,
boolean replace)
Deprecated.
Adds data to an existing TIFF file.
|
void |
close()
Deprecated.
Closes any open files.
|
int |
getBlockCount(String id)
Deprecated.
Determines the number of blocks in the given file.
|
String[] |
getDefaultSuffixes()
Deprecated.
Returns the default file SUFFIXES for the TIFF file format.
|
FormNode |
getForms(Data data)
Deprecated.
Return the data forms that are compatible with a data object.
|
double |
getPercentComplete()
Deprecated.
Get the percentage complete of the form's current operation.
|
boolean |
isThisType(byte[] block)
Deprecated.
Checks if the given block is a valid header for a TIFF file.
|
boolean |
isThisType(String name)
Deprecated.
Checks if the given string is a valid filename for a TIFF file.
|
static void |
main(String[] args)
Deprecated.
Run 'java visad.data.visad.LegacyTiffForm in_file out_file' to convert
in_file to out_file in TIFF data format.
|
DataImpl |
open(String id)
Deprecated.
Opens an existing TIFF file from the given filename.
|
DataImpl |
open(String id,
int block_number)
Deprecated.
Obtains the specified block from the given file.
|
DataImpl |
open(URL url)
Deprecated.
Opens an existing TIFF file from the given URL.
|
void |
save(String id,
Data data,
boolean replace)
Deprecated.
Saves a VisAD Data object to an uncompressed TIFF file.
|
getMathTypepublic LegacyTiffForm()
public boolean isThisType(String name)
isThisType in interface FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - block of bytes from filepublic String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformerpublic void save(String id, Data data, boolean replace) throws BadFormException, IOException, RemoteException, VisADException
save in class FormNodeid - Filename of TIFF file to save.data - VisAD Data to convert to TIFF format.replace - Whether to overwrite an existing file.BadFormExceptionIOExceptionRemoteExceptionVisADExceptionpublic void add(String id, Data data, boolean replace) throws BadFormException
add in class FormNodeBadFormException - Always thrown (method is not implemented).public DataImpl open(String id) throws BadFormException, IOException, VisADException
open in class FormNodeBadFormExceptionIOExceptionVisADExceptionpublic DataImpl open(URL url) throws BadFormException, IOException, VisADException
open in class FormNodeBadFormException - Always thrown (method is not implemented).IOExceptionVisADExceptionpublic FormNode getForms(Data data)
FormNodepublic DataImpl open(String id, int block_number) throws BadFormException, IOException, VisADException
FormBlockReaderopen in interface FormBlockReaderid - The file from which to load data blocks.block_number - The block number of the block to load.VisADException - If the block number is invalid.BadFormExceptionIOExceptionpublic int getBlockCount(String id) throws BadFormException, IOException, VisADException
FormBlockReadergetBlockCount in interface FormBlockReaderid - The file for which to get a block count.BadFormExceptionIOExceptionVisADExceptionpublic void close()
throws BadFormException,
IOException,
VisADException
FormBlockReaderclose in interface FormBlockReaderBadFormExceptionIOExceptionVisADExceptionpublic double getPercentComplete()
FormProgressInformergetPercentComplete in interface FormProgressInformerpublic static void main(String[] args) throws VisADException, RemoteException, IOException
VisADExceptionRemoteExceptionIOExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.