Package gov.nasa.pds.transform.util
Class Transcoder
- java.lang.Object
-
- gov.nasa.pds.transform.util.Transcoder
-
public class Transcoder extends Object
Wrapper class to the Transcoder in the VICAR IO library.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description Transcoder()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtranscode(File input, File output, String format)Transcode the given input.voidtranscode(File input, File output, String format, int index, boolean readAsRenderedImage)Transcode the given input.
-
-
-
Method Detail
-
transcode
public void transcode(File input, File output, String format) throws TransformException
Transcode the given input.- Parameters:
input- The input file.output- The output file.format- The format of the resulting transformation.- Throws:
TransformException- If an error occurred transcoding the input file.
-
transcode
public void transcode(File input, File output, String format, int index, boolean readAsRenderedImage) throws TransformException
Transcode the given input.- Parameters:
input- The input file.output- The output file.format- The format of the resulting transformation.index- The index of the image within the input file.readAsRenderedImage- 'true' to read the input as a rendered image, 'false' otherwise.- Throws:
TransformException- If an error occurred transcoding the input file.
-
-