public class FitsFileWriter extends Object implements Closeable
| Constructor and Description |
|---|
FitsFileWriter(File file,
ImageSet images)
Construct a FitsFileWriter object for the provided ImageSet.
|
FitsFileWriter(File file,
ImageSet images,
List<FitsHeaderMetadataProvider> providers) |
FitsFileWriter(File file,
ImageSet images,
MetaDataSet metaDataSet) |
FitsFileWriter(File file,
ImageSet images,
MetaDataSet metaDataSet,
List<FitsHeaderMetadataProvider> providers) |
FitsFileWriter(File file,
ImageSet images,
MetaDataSet metaDataSet,
List<FitsHeaderMetadataProvider> providers,
RawImageData.BitsPerPixel bits) |
| Modifier and Type | Method and Description |
|---|---|
FutureTask<Void> |
asyncWrite(int imageIndex,
ByteBuffer src) |
void |
close() |
void |
write(int imageIndex,
ByteBuffer src)
Write the actual image data to the file.
|
public FitsFileWriter(File file, ImageSet images) throws IOException, nom.tam.fits.FitsException
file - The name of the output fits fileimages - The ImageSet of images to write in the Data extended headers.
Note that this specifies the images to write, not the
actual data for the images.images - The ImageSet to write to the file.metaData - The meta-data maps to use to extract header info frombits - The number of bits per pixel for imagesIOExceptionnom.tam.fits.FitsExceptionpublic FitsFileWriter(File file, ImageSet images, MetaDataSet metaDataSet) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsExceptionpublic FitsFileWriter(File file, ImageSet images, MetaDataSet metaDataSet, List<FitsHeaderMetadataProvider> providers) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsExceptionpublic FitsFileWriter(File file, ImageSet images, List<FitsHeaderMetadataProvider> providers) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsExceptionpublic FitsFileWriter(File file, ImageSet images, MetaDataSet metaDataSet, List<FitsHeaderMetadataProvider> providers, RawImageData.BitsPerPixel bits) throws IOException, nom.tam.fits.FitsException
IOExceptionnom.tam.fits.FitsExceptionpublic void write(int imageIndex,
ByteBuffer src)
throws IOException
imageIndex - The image to which this data is to be writtensrc - The imageIOException - If an IOException is generated, or if more data is
sent than was expected for a particular image.public FutureTask<Void> asyncWrite(int imageIndex, ByteBuffer src) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017 LSST. All rights reserved.