Class FileConvert

java.lang.Object
FileConvert

public class FileConvert extends Object
Example class for converting a file from one format to another, using Bio-Formats version 4.2 or later.
Author:
Melissa Linkert melissa at glencoesoftware.com
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileConvert(String inputFile, String outputFile)
    Construct a new FileConvert to convert the specified input file.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Do the actual work of converting the input file to the output file.
    static void
    main(String[] args)
    To convert a file on the command line: $ java FileConvert input-file.oib output-file.ome.tiff

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileConvert

      public FileConvert(String inputFile, String outputFile)
      Construct a new FileConvert to convert the specified input file.
      Parameters:
      inputFile - the file to be read
      outputFile - the file to be written
  • Method Details

    • convert

      public void convert()
      Do the actual work of converting the input file to the output file.
    • main

      public static void main(String[] args)
      To convert a file on the command line: $ java FileConvert input-file.oib output-file.ome.tiff
      Parameters:
      args - Input File and Output file.