public class DirectoryListing
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getFormattedPublishedTimes() |
java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> |
getFormattedTableEntries() |
static DirectoryListing |
ofHostString(java.lang.String host)
Create a new instance by downloading an
index.json file from the
given CollecTor host and parsing its contents. |
static DirectoryListing |
ofInputStream(java.io.InputStream inputStream)
Create a new instance by parsing an
index.json file from the
given stream. |
public java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> getFormattedTableEntries()
public java.util.Map<java.lang.String,java.lang.String> getFormattedPublishedTimes()
public static DirectoryListing ofHostString(java.lang.String host) throws java.io.IOException
index.json
file from the
given CollecTor host and parsing its contents.host
- CollecTor host to download the index.json
file from.java.io.IOException
- Thrown if downloading or parsing the index.json
file fails.public static DirectoryListing ofInputStream(java.io.InputStream inputStream) throws java.io.IOException
index.json
file from the
given stream.inputStream
- Input stream providing (uncompressed) index.json
file contents.java.io.IOException
- Thrown if parsing the index.json
file fails.