Java Code Examples for javax.imageio.metadata.IIOMetadataFormat#getObjectArrayMinLength()
The following examples show how to use
javax.imageio.metadata.IIOMetadataFormat#getObjectArrayMinLength() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MetadataFormatPrinter.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 2
Source File: MetadataFormatPrinter.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 3
Source File: MetadataFormatPrinter.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 4
Source File: MetadataFormatPrinter.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 5
Source File: MetadataFormatPrinter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 6
Source File: MetadataFormatPrinter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 7
Source File: MetadataFormatPrinter.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 8
Source File: MetadataFormatPrinter.java From hottub with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 9
Source File: MetadataFormatPrinter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 10
Source File: MetadataFormatPrinter.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 11
Source File: MetadataFormatPrinter.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 12
Source File: MetadataFormatPrinter.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }
Example 13
Source File: MetadataFormatPrinter.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
private void printObjectInfo(IIOMetadataFormat format, String elementName) { int objectType = format.getObjectValueType(elementName); if (objectType == IIOMetadataFormat.VALUE_NONE) { return; } Class objectClass = format.getObjectClass(elementName); if (objectClass != null) { indent(); if (objectType == IIOMetadataFormat.VALUE_LIST) { println(" <!-- User object: array of " + objectClass.getName() + " -->"); } else { println(" <!-- User object: " + objectClass.getName() + " -->"); } Object defaultValue = format.getObjectDefaultValue(elementName); if (defaultValue != null) { indent(); println(" <!-- Default value: " + defaultValue.toString() + " -->"); } switch (objectType) { case IIOMetadataFormat.VALUE_RANGE: indent(); println(" <!-- Min value: " + format.getObjectMinValue(elementName).toString() + " -->"); indent(); println(" <!-- Max value: " + format.getObjectMaxValue(elementName).toString() + " -->"); break; case IIOMetadataFormat.VALUE_ENUMERATION: Object[] enums = format.getObjectEnumerations(elementName); for (int i = 0; i < enums.length; i++) { indent(); println(" <!-- Enumerated value: " + enums[i].toString() + " -->"); } break; case IIOMetadataFormat.VALUE_LIST: int minLength = format.getObjectArrayMinLength(elementName); if (minLength != 0) { indent(); println(" <!-- Min length: " + minLength + " -->"); } int maxLength = format.getObjectArrayMaxLength(elementName); if (maxLength != Integer.MAX_VALUE) { indent(); println(" <!-- Max length: " + maxLength + " -->"); } break; } } }