我知道如何创造InputSource出来,Reader但如何反过来呢?
我正在捕获org.xml.sax.InputSource,现在想将其输入org.xmlpull.v1.XmlPullParser. 那个有几个 setInput 方法,但这些只接受Reader或InputStream作为参数。转换成其中之一的最佳方法是InputSource什么?
我知道如何创造InputSource出来,Reader但如何反过来呢?
我正在捕获org.xml.sax.InputSource,现在想将其输入org.xmlpull.v1.XmlPullParser. 那个有几个 setInput 方法,但这些只接受Reader或InputStream作为参数。转换成其中之一的最佳方法是InputSource什么?