com.sun.org.apache.xml.internal.resolver.readers.CatalogReader Java Examples
The following examples show how to use
com.sun.org.apache.xml.internal.resolver.readers.CatalogReader.
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: Catalog.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos)); } }
Example #2
Source File: Catalog.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos)); } }
Example #3
Source File: Catalog.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos)); } }
Example #4
Source File: Catalog.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos)); } }
Example #5
Source File: Catalog.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos)); } }
Example #6
Source File: Catalog.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue().intValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos.intValue())); } }
Example #7
Source File: Catalog.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Copies the reader list from the current Catalog to a new Catalog. * * <p>This method is used internally when constructing a new catalog. * It copies the current reader associations over to the new catalog. * </p> * * @param newCatalog The new Catalog. */ protected void copyReaders(Catalog newCatalog) { // Have to copy the readers in the right order...convert hash to arr Vector mapArr = new Vector(readerMap.size()); // Pad the mapArr out to the right length for (int count = 0; count < readerMap.size(); count++) { mapArr.add(null); } for (Map.Entry<String, Integer> entry : readerMap.entrySet()) { mapArr.set(entry.getValue(), entry.getKey()); } for (int count = 0; count < mapArr.size(); count++) { String mimeType = (String) mapArr.get(count); Integer pos = readerMap.get(mimeType); newCatalog.addReader(mimeType, (CatalogReader) readerArr.get(pos)); } }