@@ -39,17 +39,7 @@ public class GifSequenceWriter implements AutoCloseable
3939 private final boolean loopContinuously ;
4040 protected ImageWriter gifWriter ;
4141 protected ImageWriteParam imageWriteParam ;
42- /**
43- * Creates a new GifSequenceWriter
44- *
45- * @param outputStream the ImageOutputStream to be written to
46- * @param imageType one of the imageTypes specified in BufferedImage
47- * @param timeBetweenFrames the time between frames in miliseconds
48- * @param loopContinuously wether the gif should loop repeatedly
49- * @throws IIOException if no gif ImageWriters are found
50- *
51- * @author Elliot Kroo (elliot[at]kroo[dot]net)
52- */
42+
5343 public GifSequenceWriter (ImageOutputStream outputStream , int imageType , Duration timeBetweenFrames ,
5444 boolean loopContinuously )
5545 {
@@ -114,21 +104,10 @@ public void writeToSequence(RenderedImage img, Duration timeBetweenFrames)
114104 ObjectUtils .throwAsError (
115105 () -> gifWriter .writeToSequence (new IIOImage (img , null , getMetadata (timeBetweenFrames )), imageWriteParam ));
116106 }
117- /**
118- * Close this GifSequenceWriter object. This does not close the underlying
119- * stream, just finishes off the GIF.
120- */
121107 public void close ()
122108 {
123109 ObjectUtils .throwAsError (() -> gifWriter .endWriteSequence ());
124110 }
125- /**
126- * Returns the first available GIF ImageWriter using
127- * ImageIO.getImageWritersBySuffix("gif").
128- *
129- * @return a GIF ImageWriter object
130- * @throws IIOException if no GIF image writers are returned
131- */
132111 private static ImageWriter getWriter ()
133112 {
134113 Iterator <ImageWriter > iter = ImageIO .getImageWritersBySuffix ("gif" );
@@ -141,15 +120,6 @@ private static ImageWriter getWriter()
141120 return iter .next ();
142121 }
143122 }
144- /**
145- * Returns an existing child node, or creates and returns a new child node (if
146- * the requested node does not exist).
147- *
148- * @param rootNode the <tt>IIOMetadataNode</tt> to search for the child node.
149- * @param nodeName the name of the child node.
150- *
151- * @return the child node, if found or a new node created with the given name.
152- */
153123 private static IIOMetadataNode getNode (IIOMetadataNode rootNode , String nodeName )
154124 {
155125 int nNodes = rootNode .getLength ();
0 commit comments