Java Code Examples for javax.imageio.plugins.jpeg.JPEGHuffmanTable#getLengths()
The following examples show how to use
javax.imageio.plugins.jpeg.JPEGHuffmanTable#getLengths() .
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: DHTMarkerSegment.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 2
Source File: DHTMarkerSegment.java From hottub with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 3
Source File: DHTMarkerSegment.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 4
Source File: DHTMarkerSegment.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 5
Source File: DHTMarkerSegment.java From Bytecoder with Apache License 2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 6
Source File: DHTMarkerSegment.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 7
Source File: DHTMarkerSegment.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 8
Source File: DHTMarkerSegment.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 9
Source File: DHTMarkerSegment.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 10
Source File: DHTMarkerSegment.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 11
Source File: DHTMarkerSegment.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 12
Source File: DHTMarkerSegment.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
Htable(Node node) throws IIOInvalidTreeException { if (node.getNodeName().equals("dhtable")) { NamedNodeMap attrs = node.getAttributes(); int count = attrs.getLength(); if (count != 2) { throw new IIOInvalidTreeException ("dhtable node must have 2 attributes", node); } tableClass = getAttributeValue(node, attrs, "class", 0, 1, true); tableID = getAttributeValue(node, attrs, "htableId", 0, 3, true); if (node instanceof IIOMetadataNode) { IIOMetadataNode ourNode = (IIOMetadataNode) node; JPEGHuffmanTable table = (JPEGHuffmanTable) ourNode.getUserObject(); if (table == null) { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } numCodes = table.getLengths(); values = table.getValues(); } else { throw new IIOInvalidTreeException ("dhtable node must have user object", node); } } else { throw new IIOInvalidTreeException ("Invalid node, expected dqtable", node); } }
Example 13
Source File: DHTMarkerSegment.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 14
Source File: DHTMarkerSegment.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 15
Source File: DHTMarkerSegment.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 16
Source File: DHTMarkerSegment.java From Bytecoder with Apache License 2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 17
Source File: DHTMarkerSegment.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 18
Source File: DHTMarkerSegment.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 19
Source File: DHTMarkerSegment.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }
Example 20
Source File: DHTMarkerSegment.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
Htable(JPEGHuffmanTable table, boolean isDC, int id) { tableClass = isDC ? 0 : 1; tableID = id; numCodes = table.getLengths(); values = table.getValues(); }