Class SourceAdapter
java.lang.Object
us.irdev.bedrock.bag.SourceAdapter
- Direct Known Subclasses:
SourceAdapterBedrock
,SourceAdapterHttp
,SourceAdapterReader
Source Adapter allows the Bag* constructors to be used with a variety of text-based
inputs without clogging the Bag* class files. The adapter handles interfacing various
external sources to one central string handler, routed into a format reader. The string
and it's MIME-type are captured together.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMimeType
(Supplier<String> noMimeType) getStringData
(Supplier<String> noStringData) setMimeType
(String mimeType) setStringData
(String stringData)
-
Field Details
-
mimeType
-
stringData
-
-
Constructor Details
-
SourceAdapter
public SourceAdapter() -
SourceAdapter
-
-
Method Details
-
setMimeType
-
setStringData
-
getMimeType
-
getMimeType
-
getStringData
-
getStringData
-