APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFIFD

extends TIFFDirectory
Class Inheritance
Imports
java.io.EOFException, .IOException, java.util.ArrayList, .Arrays, .Iterator, .List, .Set, javax.imageio.IIOException, javax.imageio.plugins.tiff.BaselineTIFFTagSet, .TIFFDirectory, .TIFFField, .TIFFTag, .TIFFTagSet, javax.imageio.stream.ImageInputStream, .ImageOutputStream

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static volatile Set<Integer>
private long
private static final long
private static final long
private long
private long

Constructor Summary

AccessConstructor and Description
public
TIFFIFD(List<TIFFTagSet> tagSets, TIFFTag parentTag)

public

Method Summary

Modifier and TypeMethod and Description
private boolean
calculateByteCounts(int expectedSize, List<TIFFField> byteCounts)

private void
checkFieldOffsets(long streamLength)

public static TIFFIFD
getDirectoryAsIFD(TIFFDirectory dir)

Converts a TIFFDirectory to a TIFFIFD.

private int
getFieldAsInt(int tagNumber)

private long
getFieldAsLong(int tagNumber)

public long
public TIFFIFD
getShallowClone()

Returns a TIFFIFD wherein all fields from the BaselineTIFFTagSet are copied by value and all other fields copied by reference.

public long
public long
public static TIFFTag
getTag(int tagNumber, List<TIFFTagSet> tagSets)

public static TIFFTag
getTag(String tagName, List<TIFFTagSet> tagSets)

public List<TIFFTagSet>
public void
initialize(ImageInputStream stream, boolean isPrimaryIFD, boolean ignoreMetadata, boolean readUnknownTags)

private static void
public Iterator<TIFFField>
iterator()

Returns an Iterator over the TIFF fields.

private static int

Returns:

the updated count
readFieldValue
(ImageInputStream
the input stream
stream
,
int
the type as read from the stream
type
,
int
the count read from the stream
count
,
Object[]
a container for the data
data
)

Read the value of a field.

pack-priv void
setPositions(long stripOrTileOffsetsPosition, long stripOrTileByteCountsPosition, long lastPosition)

private static void
public void
Inherited from javax.imageio.plugins.tiff.TIFFDirectory:
addTagSetaddTIFFFieldclonecontainsTIFFFieldcreateFromMetadatagetAsMetadatagetNumTIFFFieldsgetParentTaggetTaggetTagSetsgetTIFFFieldgetTIFFFieldsremoveTagSetremoveTIFFFieldremoveTIFFFields

Field Detail

essentialTagsback to summary
private static volatile Set<Integer> essentialTags
lastPositionback to summary
private long lastPosition
MAX_ASCII_SIZEback to summary
private static final long MAX_ASCII_SIZE
MAX_SAMPLES_PER_PIXELback to summary
private static final long MAX_SAMPLES_PER_PIXEL
stripOrTileByteCountsPositionback to summary
private long stripOrTileByteCountsPosition
stripOrTileOffsetsPositionback to summary
private long stripOrTileOffsetsPosition

Constructor Detail

TIFFIFDback to summary
public TIFFIFD(List<TIFFTagSet> tagSets, TIFFTag parentTag)
TIFFIFDback to summary
public TIFFIFD(List<TIFFTagSet> tagSets)

Method Detail

calculateByteCountsback to summary
private boolean calculateByteCounts(int expectedSize, List<TIFFField> byteCounts)
checkFieldOffsetsback to summary
private void checkFieldOffsets(long streamLength) throws IIOException
getDirectoryAsIFDback to summary
public static TIFFIFD getDirectoryAsIFD(TIFFDirectory dir)

Converts a TIFFDirectory to a TIFFIFD.

getFieldAsIntback to summary
private int getFieldAsInt(int tagNumber)
getFieldAsLongback to summary
private long getFieldAsLong(int tagNumber)
getLastPositionback to summary
public long getLastPosition()
getShallowCloneback to summary
public TIFFIFD getShallowClone()

Returns a TIFFIFD wherein all fields from the BaselineTIFFTagSet are copied by value and all other fields copied by reference.

getStripOrTileByteCountsPositionback to summary
public long getStripOrTileByteCountsPosition()
getStripOrTileOffsetsPositionback to summary
public long getStripOrTileOffsetsPosition()
getTagback to summary
public static TIFFTag getTag(int tagNumber, List<TIFFTagSet> tagSets)
getTagback to summary
public static TIFFTag getTag(String tagName, List<TIFFTagSet> tagSets)
getTagSetListback to summary
public List<TIFFTagSet> getTagSetList()
initializeback to summary
public void initialize(ImageInputStream stream, boolean isPrimaryIFD, boolean ignoreMetadata, boolean readUnknownTags) throws IOException
initializeEssentialTagsback to summary
private static void initializeEssentialTags()
iteratorback to summary
public Iterator<TIFFField> iterator()

Returns an Iterator over the TIFF fields. The traversal is in the order of increasing tag number.

readFieldValueback to summary
private static int readFieldValue(ImageInputStream stream, int type, int count, Object[] data) throws IOException

Read the value of a field. The data parameter should be an array of length 1 of Object.

Parameters
stream:ImageInputStream

the input stream

type:int

the type as read from the stream

count:int

the count read from the stream

data:Object[]

a container for the data

Returns:int

the updated count

setPositionsback to summary
pack-priv void setPositions(long stripOrTileOffsetsPosition, long stripOrTileByteCountsPosition, long lastPosition)
writeTIFFFieldToStreamback to summary
private static void writeTIFFFieldToStream(TIFFField field, ImageOutputStream stream) throws IOException
writeToStreamback to summary
public void writeToStream(ImageOutputStream stream) throws IOException
com.sun.imageio.plugins.tiff back to summary

private Class TIFFIFD.TIFFIFDEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final int
public final long
public final TIFFTag
public final int

Constructor Summary

AccessConstructor and Description
pack-priv
TIFFIFDEntry(TIFFTag tag, int type, int count, long offset)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
public final int count
offsetback to summary
public final long offset
tagback to summary
public final TIFFTag tag
typeback to summary
public final int type

Constructor Detail

TIFFIFDEntryback to summary
pack-priv TIFFIFDEntry(TIFFTag tag, int type, int count, long offset)