@ThreadSafe public interface ArrayReader
Array instances from a variety of input forms.| Modifier and Type | Method and Description |
|---|---|
static ArrayReader |
defaultReader()
Get the default
ArrayReader instance. |
default Array |
readArray(byte[] rawBytes)
Read an array from the supplied bytes.
|
default Array |
readArray(File jsonFile)
Read an array from the supplied file.
|
Array |
readArray(InputStream jsonStream)
Read an array from the supplied stream.
|
Array |
readArray(Reader jsonReader)
Read an array from the supplied
Reader. |
Array |
readArray(String json)
Read an array from the supplied JSON-formatted string.
|
default Array |
readArray(URL jsonUrl)
Read an array from the content at the given URL.
|
static ArrayReader defaultReader()
ArrayReader instance.Array readArray(InputStream jsonStream) throws IOException
jsonStream - the input stream to be read; may not be nullIOException - if an array could not be read from the supplied streamArray readArray(Reader jsonReader) throws IOException
Reader.jsonReader - the reader to be read; may not be nullIOException - if an array could not be read from the supplied readerArray readArray(String json) throws IOException
json - the JSON string representation to be read; may not be nullIOException - if an array could not be read from the supplied stringdefault Array readArray(URL jsonUrl) throws IOException
jsonUrl - the URL to the content that is to be read; may not be nullIOException - if an array could not be read from the supplied contentdefault Array readArray(File jsonFile) throws IOException
jsonFile - the file to be read; may not be nullIOException - if an array could not be read from the supplied filedefault Array readArray(byte[] rawBytes) throws IOException
rawBytes - the UTF-8 bytes to be read; may not be nullIOException - if an array could not be read from the supplied bytesCopyright © 2020 JBoss by Red Hat. All rights reserved.