public class IFD extends abstractTiffType
| Modifier and Type | Class and Description |
|---|---|
static class |
IFD.ImageRepresentation
The Enum ImageRepresentation.
|
| Constructor and Description |
|---|
IFD(boolean isImage)
Instantiates a new long.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String tagName,
int[] tagValue)
Adds a tag.
|
void |
addTag(String tagName,
String tagValue)
Adds a tag.
|
void |
addTag(TagValue tv)
Adds the metadata.
|
boolean |
containsTagId(int tagid)
Contains tag id.
|
Metadata |
createMetadata()
Create IFD metadata.
|
long |
getImageSize()
Gets the image size (x*y).
|
ImageStrips |
getImageStrips()
Gets the image in strips.
|
ImageTiles |
getImageTiles()
Gets the image tiles.
|
int |
getLength()
Gets length.
|
IfdTags |
getMetadata()
Gets the metadata.
|
IFD |
getNextIFD()
Gets the next ifd.
|
int |
getNextOffset()
Gets the next offset.
|
int |
getOffset()
Gets offset.
|
IFD |
getParent()
Gets the parent.
|
IFD |
getsubIFD()
Gets the subIFD.
|
List<IFD> |
getSubIFD()
Gets sub ifds.
|
TagValue |
getTag(String name)
Gets the metadata.
|
IfdTags |
getTags()
Gets the tags.
|
boolean |
hasNextIFD()
Checks for next ifd.
|
boolean |
hasParent()
Checks for parent.
|
boolean |
hasStrips()
Checks for strips.
|
boolean |
hasSubIFD()
Checks for sub IFDs.
|
boolean |
hasTiles()
Checks for tiles.
|
boolean |
isImage()
Checks if is image.
|
boolean |
isThumbnail()
Is thumbnail boolean.
|
void |
printTags()
Prints the tags.
|
void |
removeTag(String tagName)
Removes the tag.
|
void |
setImageStrips(ImageStrips strips)
Sets the image strips.
|
void |
setImageTiles(ImageTiles imageTiles)
Sets the image tiles.
|
void |
setIsIFD(boolean b)
Sets the checks if is ifd.
|
void |
setIsImage(boolean b)
Sets the checks if is image.
|
void |
setNextIFD(IFD ifd)
Sets the next ifd.
|
void |
setNextOffset(int offset)
Sets the next offset.
|
void |
setOffset(int offset)
Sets offset.
|
void |
setParent(IFD parent)
Sets the parent.
|
void |
setsubIFD(IFD subIFD)
Sets the subIFD.
|
String |
toString() |
containsMetadata, getTypeSize, isIFD, read, read, setTypeSize, toByte, toInt, toUintgetContainer, setContainerpublic IFD(boolean isImage)
isImage - the is imagepublic int getNextOffset()
public void setNextOffset(int offset)
offset - the new next offsetpublic void setOffset(int offset)
offset - the offsetpublic int getOffset()
public int getLength()
public void setParent(IFD parent)
parent - the new parentpublic IfdTags getTags()
public IFD getParent()
public long getImageSize()
public void setsubIFD(IFD subIFD)
subIFD - the new subIFDpublic IFD getsubIFD()
public boolean hasParent()
public boolean hasSubIFD()
public boolean isThumbnail()
public Metadata createMetadata()
createMetadata in class abstractTiffTypepublic void setNextIFD(IFD ifd)
ifd - the new next ifdpublic boolean hasNextIFD()
public TagValue getTag(String name)
name - the namepublic void addTag(TagValue tv)
tv - the tvpublic IfdTags getMetadata()
public boolean containsTagId(int tagid)
tagid - the tagidpublic void printTags()
public IFD getNextIFD()
public ImageStrips getImageStrips()
public ImageTiles getImageTiles()
public void setImageStrips(ImageStrips strips)
strips - the new image stripspublic void setImageTiles(ImageTiles imageTiles)
imageTiles - the new image tilespublic void setIsImage(boolean b)
b - the new checks if is imagepublic void setIsIFD(boolean b)
setIsIFD in class abstractTiffTypeb - the new checks if is ifdpublic boolean isImage()
public boolean hasStrips()
public boolean hasTiles()
public void removeTag(String tagName)
tagName - the tag namepublic void addTag(String tagName, String tagValue)
tagName - the tag nametagValue - the tag valuepublic void addTag(String tagName, int[] tagValue)
tagName - the tag nametagValue - the tag valueCopyright © 2015–2020. All rights reserved.