org.das2.util
Class DasPNGEncoder

java.lang.Object
  extended by org.das2.util.DasPNGConstants
      extended by org.das2.util.DasPNGEncoder

public class DasPNGEncoder
extends DasPNGConstants


Field Summary
 
Fields inherited from class org.das2.util.DasPNGConstants
DEFAULT_GAMMA, gamma, KEYWORD_AUTHOR, KEYWORD_COMMENT, KEYWORD_COPYRIGHT, KEYWORD_CREATION_TIME, KEYWORD_DESCRIPTION, KEYWORD_DISCLAIMER, KEYWORD_SOFTWARE, KEYWORD_SOURCE, KEYWORD_TITLE, KEYWORD_WARNING, textMap
 
Constructor Summary
DasPNGEncoder()
          Creates a new instance of DasPNGEncoder
 
Method Summary
 void addText(java.lang.String keyword, java.lang.String content)
          Adds a tEXT chunk with the specified keyword and content.
 void removeAllText(java.lang.String keyword)
          Removes all tEXT chunk with the specified keyword
 void removeText(java.lang.String keyword, java.lang.String content)
          Removes the tEXT chunk with the specifed keyword and content.
 void setGamma(int gamma)
           
 void write(java.awt.image.BufferedImage image, java.io.OutputStream out)
           
 
Methods inherited from class org.das2.util.DasPNGConstants
getGamma, getISO8859_1Bytes, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DasPNGEncoder

public DasPNGEncoder()
Creates a new instance of DasPNGEncoder

Method Detail

addText

public void addText(java.lang.String keyword,
                    java.lang.String content)
Adds a tEXT chunk with the specified keyword and content.

Parameters:
keyword - the specified keyword
content - the content for the tEXT chunk

removeText

public void removeText(java.lang.String keyword,
                       java.lang.String content)
Removes the tEXT chunk with the specifed keyword and content.

Parameters:
keyword - the specified keyword
content - the specified content to be removed

removeAllText

public void removeAllText(java.lang.String keyword)
Removes all tEXT chunk with the specified keyword

Parameters:
keyword - the specified keyword.

setGamma

public void setGamma(int gamma)

write

public void write(java.awt.image.BufferedImage image,
                  java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException