Ignore:
Timestamp:
2014-06-14T14:05:38+02:00 (11 years ago)
Author:
bastik
Message:

update to [josm7248]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/ValidatingImageryReader.java

    r30342 r30495  
    99import javax.xml.validation.SchemaFactory;
    1010
    11 import org.openstreetmap.josm.io.MirroredInputStream;
     11import org.openstreetmap.josm.io.CachedFile;
    1212import org.openstreetmap.josm.io.imagery.ImageryReader;
    1313import org.openstreetmap.josm.plugins.imageryxmlbounds.XmlBoundsConstants;
     
    3434        public static void validate(String source) throws SAXException, IOException {
    3535        SchemaFactory factory =  SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    36         Schema schema = factory.newSchema(new StreamSource(new MirroredInputStream(XML_SCHEMA)));
     36        Schema schema = factory.newSchema(new StreamSource(new CachedFile(XML_SCHEMA).getInputStream()));
    3737        schema.newValidator().validate(new StreamSource(source));
    3838        }
Note: See TracChangeset for help on using the changeset viewer.