Package com.twelvemonkeys.imageio
Class StandardImageMetadataSupport.Builder
- java.lang.Object
-
- com.twelvemonkeys.imageio.StandardImageMetadataSupport.Builder
-
- Enclosing class:
- StandardImageMetadataSupport
public static class StandardImageMetadataSupport.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int[]bitsPerSampleprivate booleanblackIsZeroprivate StandardImageMetadataSupport.ColorSpaceTypecolorSpaceTypeprivate booleancompressionLosslessprivate java.lang.StringcompressionNameprivate java.util.CalendardocumentCreationTimeprivate java.lang.StringformatVersionprivate StandardImageMetadataSupport.ImageOrientationorientationprivate java.awt.image.IndexColorModelpaletteprivate java.lang.DoublepixelAspectRatioprivate StandardImageMetadataSupport.PlanarConfigurationplanarConfigurationprivate int[]sampleMSBprivate int[]significantBitsprivate StandardImageMetadataSupport.SubimageInterpretationsubimageInterpretationprivate java.util.Collection<StandardImageMetadataSupport.TextEntry>textEntriesprivate javax.imageio.ImageTypeSpecifiertype
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(javax.imageio.ImageTypeSpecifier type)
-
Method Summary
-
-
-
Field Detail
-
type
private final javax.imageio.ImageTypeSpecifier type
-
colorSpaceType
private StandardImageMetadataSupport.ColorSpaceType colorSpaceType
-
blackIsZero
private boolean blackIsZero
-
palette
private java.awt.image.IndexColorModel palette
-
compressionName
private java.lang.String compressionName
-
compressionLossless
private boolean compressionLossless
-
planarConfiguration
private StandardImageMetadataSupport.PlanarConfiguration planarConfiguration
-
bitsPerSample
public int[] bitsPerSample
-
significantBits
private int[] significantBits
-
sampleMSB
private int[] sampleMSB
-
pixelAspectRatio
private java.lang.Double pixelAspectRatio
-
orientation
private StandardImageMetadataSupport.ImageOrientation orientation
-
formatVersion
private java.lang.String formatVersion
-
subimageInterpretation
private StandardImageMetadataSupport.SubimageInterpretation subimageInterpretation
-
documentCreationTime
private java.util.Calendar documentCreationTime
-
textEntries
private final java.util.Collection<StandardImageMetadataSupport.TextEntry> textEntries
-
-
Method Detail
-
withColorSpaceType
public StandardImageMetadataSupport.Builder withColorSpaceType(StandardImageMetadataSupport.ColorSpaceType colorSpaceType)
-
withBlackIsZero
public StandardImageMetadataSupport.Builder withBlackIsZero(boolean blackIsZero)
-
withPalette
public StandardImageMetadataSupport.Builder withPalette(java.awt.image.IndexColorModel palette)
-
withCompressionTypeName
public StandardImageMetadataSupport.Builder withCompressionTypeName(java.lang.String compressionName)
-
withCompressionLossless
public StandardImageMetadataSupport.Builder withCompressionLossless(boolean lossless)
-
withPlanarConfiguration
public StandardImageMetadataSupport.Builder withPlanarConfiguration(StandardImageMetadataSupport.PlanarConfiguration planarConfiguration)
-
withBitsPerSample
public StandardImageMetadataSupport.Builder withBitsPerSample(int... bitsPerSample)
-
withSignificantBitsPerSample
public StandardImageMetadataSupport.Builder withSignificantBitsPerSample(int... significantBits)
-
withSampleMSB
public StandardImageMetadataSupport.Builder withSampleMSB(int... sampleMSB)
-
withPixelAspectRatio
public StandardImageMetadataSupport.Builder withPixelAspectRatio(java.lang.Double pixelAspectRatio)
-
withOrientation
public StandardImageMetadataSupport.Builder withOrientation(StandardImageMetadataSupport.ImageOrientation orientation)
-
withFormatVersion
public StandardImageMetadataSupport.Builder withFormatVersion(java.lang.String formatVersion)
-
withSubimageInterpretation
public StandardImageMetadataSupport.Builder withSubimageInterpretation(StandardImageMetadataSupport.SubimageInterpretation interpretation)
-
withDocumentCreationTime
public StandardImageMetadataSupport.Builder withDocumentCreationTime(java.util.Calendar creationTime)
-
withTextEntries
public StandardImageMetadataSupport.Builder withTextEntries(java.util.Map<java.lang.String,java.lang.String> entries)
-
toTextEntries
private java.util.Collection<StandardImageMetadataSupport.TextEntry> toTextEntries(java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> entries)
-
withTextEntries
public StandardImageMetadataSupport.Builder withTextEntries(java.util.Collection<StandardImageMetadataSupport.TextEntry> entries)
-
withTextEntry
public StandardImageMetadataSupport.Builder withTextEntry(java.lang.String keyword, java.lang.String value)
-
build
public javax.imageio.metadata.IIOMetadata build()
-
-