I woudlike to use feature content with using XMLStreamReader but I have the same error :
class com.sun.xml.internal.stream.XMLEventReaderImpl cannot be cast to class java.io.InputStream
Java :
FeatureContent fc = new FeatureContent();
XMLOutputFactory outputFactory = XMLOutputFactory.newFactory();
XMLStreamReader eventReader = factory.createXMLStreamReader((InputStream) fc.getGMLEventReader(gmlFile));
Read more here: https://stackoverflow.com/questions/66995400/java-how-to-use-featurecontent-with-xmlstreamreader
Content Attribution
This content was originally published by Software14 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.