/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// package scope
static final String
super(true,
"com.sun.imageio.plugins.gif.GIFImageMetadataFormat",
}
public boolean isReadOnly() {
return false;
}
public void reset() {
// Fields from Image Descriptor
imageLeftPosition = 0;
imageTopPosition = 0;
imageWidth = 0;
imageHeight = 0;
interlaceFlag = false;
sortFlag = false;
// Fields from Graphic Control Extension
disposalMethod = 0;
userInputFlag = false;
transparentColorFlag = false;
delayTime = 0;
// Fields from Plain Text Extension
hasPlainTextExtension = false;
textGridLeft = 0;
textGridTop = 0;
textGridWidth = 0;
textGridHeight = 0;
characterCellWidth = 0;
characterCellHeight = 0;
textForegroundColor = 0;
textBackgroundColor = 0;
// Fields from ApplicationExtension
// Fields from CommentExtension
// List of byte[]
}
try {
} catch (UnsupportedEncodingException e) {
return "".getBytes();
}
}
}
"imageLeftPosition",
-1, true,
true, 0, 65535);
"imageTopPosition",
-1, true,
true, 0, 65535);
"imageWidth",
-1, true,
true, 1, 65535);
"imageHeight",
-1, true,
true, 1, 65535);
false, true);
int sizeOfLocalColorTable =
true, 2, 256);
if (sizeOfLocalColorTable != 2 &&
sizeOfLocalColorTable != 4 &&
sizeOfLocalColorTable != 8 &&
sizeOfLocalColorTable != 16 &&
sizeOfLocalColorTable != 32 &&
sizeOfLocalColorTable != 64 &&
sizeOfLocalColorTable != 128 &&
sizeOfLocalColorTable != 256) {
"Bad value for LocalColorTable attribute sizeOfLocalColorTable!");
}
true, sizeOfLocalColorTable);
true, disposalMethodNames);
disposalMethod = 0;
}
false, true);
false, true);
"delayTime",
-1, true,
true, 0, 65535);
-1, true,
true, 0, 65535);
hasPlainTextExtension = true;
"textGridLeft",
-1, true,
true, 0, 65535);
"textGridTop",
-1, true,
true, 0, 65535);
"textGridWidth",
-1, true,
true, 1, 65535);
"textGridHeight",
-1, true,
true, 1, 65535);
"characterCellWidth",
-1, true,
true, 1, 65535);
"characterCellHeight",
-1, true,
true, 1, 65535);
"textForegroundColor",
-1, true,
true, 0, 255);
"textBackgroundColor",
-1, true,
true, 0, 255);
// XXX The "text" attribute of the PlainTextExtension element
// is not defined in the GIF image metadata format but it is
// present in the GIFImageMetadata class. Consequently it is
// used here but not required and with a default of "". See
// bug 5082763.
"Only a ApplicationExtension may be a child of a ApplicationExtensions!");
}
if (applicationExtensionData == null ||
!(applicationExtensionData instanceof byte[])) {
"Bad user object in ApplicationExtension!");
}
if (applicationIDs == null) {
applicationIDs = new ArrayList();
authenticationCodes = new ArrayList();
applicationData = new ArrayList();
}
if (commentExtension != null) {
while(commentExtension != null) {
"Only a CommentExtension may be a child of a CommentExtensions!");
}
}
true, null);
}
}
} else {
}
}
}
throws IIOInvalidTreeException {
if (!node.getNodeName()
}
"PaletteEntry",
false, -1);
break;
}
}
int numProgressiveScans =
if (numProgressiveScans > 1) {
interlaceFlag = true;
}
break;
}
}
"value",
-1, true,
true, 0, 65535);
"value",
-1, true,
true, 0, 65535);
}
}
"encoding",
"ISO-8859-1",
false))) {
}
}
}
"value",
-1, true,
true, 0, 255);
transparentColorFlag = true;
break;
}
}
}
}
}
throws IIOInvalidTreeException
{
reset();
}
}