Code example for StreamSource

Methods: getInputStreamgetPublicIdgetReadergetSystemId

0
                return uh.getResult();
            } 
        } else if (pSource instanceof StreamSource) {
            StreamSource ss = (StreamSource) pSource;
            InputSource iSource = new InputSource();
            iSource.setPublicId(ss.getPublicId());
            iSource.setSystemId(ss.getSystemId());
            Reader r = ss.getReader();
            if (r == null) {
                InputStream is = ss.getInputStream();
                if (is == null) {
                    throw new IllegalArgumentException("The StreamSource doesn't have its Reader or InputStream set.");
                } else { 
                    iSource.setByteStream(is);
                } 
            } else { 
                iSource.setCharacterStream(r);
            } 
            return unmarshal(iSource);
        } else if (pSource instanceof DOMSource) {
Connect your IDE to all the code out there  Get Codota for Java