Class FormatInputStream
java.lang.Object
com.yahoo.vespa.http.client.runner.FormatInputStream
- Author:
- valerijf
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFormatInputStream
(InputStream stream, Optional<String> inputFile, boolean addRootElementToXml) Creates a single data input stream from either file or InputStream depending on which one is present. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
FormatInputStream
public FormatInputStream(InputStream stream, Optional<String> inputFile, boolean addRootElementToXml) throws IOException Creates a single data input stream from either file or InputStream depending on which one is present. Preference for file if both present. Additionally also detects input data format of the result stream, throws IllegalArgumentException if unable to determine data format.- Parameters:
stream
- InputStream of the data if presentinputFile
- path to file to use as inputaddRootElementToXml
- to add vespafeed root element around the input data stream- Throws:
IOException
- on errors
-
-
Method Details
-
getInputStream
-
getFormat
-