com.aspose.imaging.fileformats.gif.blocks
Class GifCommentBlock

java.lang.Object
  extended by com.aspose.imaging.fileformats.gif.GifBlock
      extended by com.aspose.imaging.fileformats.gif.blocks.GifCommentBlock
All Implemented Interfaces:
IGifBlock

public class GifCommentBlock
extends GifBlock

Gif comment block.


Field Summary
static int BlockHeaderSize
           Defines the block header size.
static byte ExtensionLabel
           Gif comment block extension label.
 
Fields inherited from class com.aspose.imaging.fileformats.gif.GifBlock
ExtensionIntroducer
 
Constructor Summary
GifCommentBlock()
           Initializes a new instance of the GifCommentBlock class.
GifCommentBlock(java.lang.String comment)
           Initializes a new instance of the GifCommentBlock class.
 
Method Summary
 java.lang.String getComment()
           Gets the comment.
 void save(java.io.InputStream stream)
           Saves the block to the InputStream.
 void setComment(java.lang.String value)
           Sets the comment.
 
Methods inherited from class com.aspose.imaging.fileformats.gif.GifBlock
isChanged, isChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BlockHeaderSize

public static final int BlockHeaderSize

Defines the block header size.

See Also:
Constant Field Values

ExtensionLabel

public static final byte ExtensionLabel

Gif comment block extension label.

See Also:
Constant Field Values
Constructor Detail

GifCommentBlock

public GifCommentBlock()

Initializes a new instance of the GifCommentBlock class.


GifCommentBlock

public GifCommentBlock(java.lang.String comment)

Initializes a new instance of the GifCommentBlock class.

Parameters:
comment - The comment.
Method Detail

getComment

public java.lang.String getComment()

Gets the comment. Note that comment must use ASCII encoding and will be stored accordingly.

Value: The comment.


save

public void save(java.io.InputStream stream)

Saves the block to the InputStream.

Specified by:
save in interface IGifBlock
Overrides:
save in class GifBlock
Parameters:
stream - The stream to save data to.

setComment

public void setComment(java.lang.String value)

Sets the comment. Note that comment must use ASCII encoding and will be stored accordingly.

Value: The comment.