mirror of
https://github.com/lightbend/config.git
synced 2025-03-23 07:40:25 +08:00
remove ParseableInputStream, not used
We only let you parse a reader, so we don't have to play "what encoding is this stream in"
This commit is contained in:
parent
4619d05cd2
commit
cabfdf528f
@ -228,34 +228,6 @@ public abstract class Parseable implements ConfigParseable {
|
||||
}
|
||||
}
|
||||
|
||||
private final static class ParseableInputStream extends Parseable {
|
||||
final private InputStream input;
|
||||
|
||||
ParseableInputStream(InputStream input, ConfigParseOptions options) {
|
||||
this.input = input;
|
||||
postConstruct(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Reader reader() {
|
||||
return doNotClose(readerFromStream(input));
|
||||
}
|
||||
|
||||
@Override
|
||||
String originDescription() {
|
||||
return "InputStream";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* note that we will never close this stream; you have to do it when parsing
|
||||
* is complete.
|
||||
*/
|
||||
public static Parseable newInputStream(InputStream input,
|
||||
ConfigParseOptions options) {
|
||||
return new ParseableInputStream(input, options);
|
||||
}
|
||||
|
||||
private final static class ParseableReader extends Parseable {
|
||||
final private Reader reader;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user