Package org.apache.solr.core
Interface BlobRepository.Decoder<T>
-
- Enclosing class:
- BlobRepository
public static interface BlobRepository.Decoder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tdecode(InputStream inputStream)A routine that knows how to convert the stream of bytes from the blob into a Java object.default StringgetName()A name by which to distinguish this decoding.
-
-
-
Method Detail
-
getName
default String getName()
A name by which to distinguish this decoding. This only needs to be implemented if you want to support decoding the same blob content with more than one decoder.- Returns:
- The name of the decoding, defaults to empty string.
-
decode
T decode(InputStream inputStream)
A routine that knows how to convert the stream of bytes from the blob into a Java object.- Parameters:
inputStream- the bytes from a blob- Returns:
- A Java object of the specified type.
-
-