Closed kaibolay closed 4 years ago
The method PropertyListParser.parse(InputStream) is documented as
PropertyListParser.parse(InputStream)
Parses a property list from an InputStream. This method does not close the specified input stream.
Unfortunately the underlying Xerxes XML parser does close the InputStream.
As a workaround I wrap the InputStream to ignore close():
close()
PropertyListParser.parse( new FilterInputStream(inputStream) { @Override public void close() {} });
I see two ways to fix this bug:
The method
PropertyListParser.parse(InputStream)
is documented asUnfortunately the underlying Xerxes XML parser does close the InputStream.
As a workaround I wrap the InputStream to ignore
close()
:I see two ways to fix this bug:
close()
.