jpview.io
Class LRGBReader

java.lang.Object
  extended by jpview.io.LRGBReader
All Implemented Interfaces:
PTMReader

public class LRGBReader
extends java.lang.Object
implements PTMReader

Provides access to uncompressed LRGBPTMs

Author:
Default

Constructor Summary
LRGBReader(java.io.InputStream in)
          Creates a new instance of LRGBReader
 
Method Summary
static void main(java.lang.String[] args)
          main method for testing the reader
 PTM readPTM()
          Calls the LRGBPTM read procedure
 void setDebug(boolean b)
          If true, extra debugging output is created
 void setVersion(java.lang.String s)
          Sets the version - mutator for the PTMIO factory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRGBReader

public LRGBReader(java.io.InputStream in)
Creates a new instance of LRGBReader

Parameters:
in - the input stream to read
Method Detail

setVersion

public void setVersion(java.lang.String s)
Sets the version - mutator for the PTMIO factory

Parameters:
s - the version string

setDebug

public void setDebug(boolean b)
If true, extra debugging output is created

Parameters:
b - produce extra debugging output if b is true

readPTM

public PTM readPTM()
            throws java.io.IOException
Calls the LRGBPTM read procedure

Specified by:
readPTM in interface PTMReader
Returns:
the LRGBPTM
Throws:
java.io.IOException - if the input stream cannot be read

main

public static void main(java.lang.String[] args)
main method for testing the reader

Parameters:
args - args[0] is the location of a ptm file