loci.formats
Class BioRadReader

java.lang.Object
  extended byloci.formats.FormatHandler
      extended byloci.formats.FormatReader
          extended byloci.formats.BioRadReader

public class BioRadReader
extends FormatReader

BioRadReader is the file format reader for Bio-Rad PIC files.


Field Summary
static String[] NOTE_NAMES
          List of note types.
 
Fields inherited from class loci.formats.FormatReader
DEBUG, DEBUG_LEVEL, metadata, ome
 
Fields inherited from class loci.formats.FormatHandler
chooser, currentId, filters, format, suffixes
 
Constructor Summary
BioRadReader()
          Constructs a new BioRadReader.
 
Method Summary
 void close()
          Closes any open files.
 int getImageCount(String id)
          Determines the number of images in the given Bio-Rad PIC file.
protected  void initFile(String id)
          Initializes the given IPLab file.
 boolean isThisType(byte[] block)
          Checks if the given block is a valid header for a Bio-Rad PIC file.
static void main(String[] args)
           
 String noteString(int n, int l, int s, int t, int x, int y, String p)
           
 BufferedImage open(String id, int no)
          Obtains the specified image from the given Bio-Rad PIC file.
 
Methods inherited from class loci.formats.FormatReader
createFilters, getMetadata, getMetadataValue, getOMENode, open, testRead
 
Methods inherited from class loci.formats.FormatHandler
getFileChooser, getFileFilters, getFormat, getSuffixes, isThisType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTE_NAMES

public static final String[] NOTE_NAMES
List of note types.

Constructor Detail

BioRadReader

public BioRadReader()
Constructs a new BioRadReader.

Method Detail

isThisType

public boolean isThisType(byte[] block)
Checks if the given block is a valid header for a Bio-Rad PIC file.

Specified by:
isThisType in class FormatReader

getImageCount

public int getImageCount(String id)
                  throws FormatException,
                         IOException
Determines the number of images in the given Bio-Rad PIC file.

Specified by:
getImageCount in class FormatReader
Throws:
FormatException
IOException

open

public BufferedImage open(String id,
                          int no)
                   throws FormatException,
                          IOException
Obtains the specified image from the given Bio-Rad PIC file.

Specified by:
open in class FormatReader
Throws:
FormatException
IOException

close

public void close()
           throws FormatException,
                  IOException
Closes any open files.

Specified by:
close in class FormatReader
Throws:
FormatException
IOException

initFile

protected void initFile(String id)
                 throws FormatException,
                        IOException
Initializes the given IPLab file.

Overrides:
initFile in class FormatReader
Throws:
FormatException
IOException

noteString

public String noteString(int n,
                         int l,
                         int s,
                         int t,
                         int x,
                         int y,
                         String p)

main

public static void main(String[] args)
                 throws FormatException,
                        IOException
Throws:
FormatException
IOException