Class HarReader
java.lang.Object
de.sstoehr.harreader.AbstractHarIO
de.sstoehr.harreader.HarReader
-
Nested Class Summary
Nested classes/interfaces inherited from class de.sstoehr.harreader.AbstractHarIO
AbstractHarIO.IOFunction<T,R> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFromBytes(byte[] bytes) Deserialize HAR from the given byte array.readFromBytes(byte[] bytes, HarReaderMode mode) Deserialize HAR from the given byte array.readFromFile(File har) readFromFile(File har, HarReaderMode mode) readFromInputStream(InputStream harInputStream) Deserialize HAR from the givenInputStream.readFromInputStream(InputStream harInputStream, HarReaderMode mode) Deserialize HAR from the givenInputStream.readFromString(String har) readFromString(String har, HarReaderMode mode) Methods inherited from class de.sstoehr.harreader.AbstractHarIO
getMapperFactory, wrap
-
Constructor Details
-
HarReader
public HarReader() -
HarReader
-
-
Method Details
-
readFromFile
- Throws:
HarReaderException
-
readFromFile
- Throws:
HarReaderException
-
readFromInputStream
Deserialize HAR from the givenInputStream.InputStreamis closed after reading.- Parameters:
harInputStream-InputStreamto read HAR from.- Returns:
- HAR deserialized from
InputStream - Throws:
HarReaderException- if a low-level I/O problem occurs
-
readFromInputStream
public Har readFromInputStream(InputStream harInputStream, HarReaderMode mode) throws HarReaderException Deserialize HAR from the givenInputStream.InputStreamis closed after reading.- Parameters:
harInputStream-InputStreamto read HAR from.mode- Reading mode- Returns:
- HAR deserialized from
InputStream - Throws:
HarReaderException- if a low-level I/O problem occurs
-
readFromString
- Throws:
HarReaderException
-
readFromString
- Throws:
HarReaderException
-
readFromBytes
Deserialize HAR from the given byte array.- Parameters:
bytes- Byte array to deserialize HAR from- Returns:
- HAR deserialized from byte array
- Throws:
HarReaderException- if a low-level I/O problem occurs
-
readFromBytes
Deserialize HAR from the given byte array.- Parameters:
bytes- Byte array to deserialize HAR frommode- Reading mode- Returns:
- HAR deserialized from byte array
- Throws:
HarReaderException- if a low-level I/O problem occurs
-