Class SourceAdapterReader
java.lang.Object
us.irdev.bedrock.bag.SourceAdapter
us.irdev.bedrock.bag.SourceAdapterReader
-
Field Summary
Fields inherited from class us.irdev.bedrock.bag.SourceAdapter
mimeType, stringData -
Constructor Summary
ConstructorsConstructorDescriptionSourceAdapterReader(File file) Read string data from a fileSourceAdapterReader(File file, String mimeType) Read string data from a file when the MIME-type is knownSourceAdapterReader(InputStream inputStream, String mimeType) Read string data from any input streamSourceAdapterReader(Reader reader, String mimeType) SourceAdapterReader(Class context, String name) Read string data from a resourceSourceAdapterReader(Class context, String name, String mimeType) Read string data from a resource when the MIME-type is knownSourceAdapterReader(String string, String mimeType) Read directly from a string -
Method Summary
Methods inherited from class us.irdev.bedrock.bag.SourceAdapter
getMimeType, getMimeType, getStringData, getStringData, setMimeType, setStringData
-
Constructor Details
-
SourceAdapterReader
- Throws:
IOException
-
SourceAdapterReader
Read directly from a string- Parameters:
string-mimeType-- Throws:
IOException
-
SourceAdapterReader
Read string data from any input stream- Parameters:
inputStream-mimeType-- Throws:
IOException
-
SourceAdapterReader
Read string data from a file- Parameters:
file-- Throws:
IOException
-
SourceAdapterReader
Read string data from a file when the MIME-type is known- Parameters:
file-mimeType-- Throws:
IOException
-
SourceAdapterReader
Read string data from a resource- Parameters:
context-name-- Throws:
IOException
-
SourceAdapterReader
Read string data from a resource when the MIME-type is known- Parameters:
context-name-mimeType-- Throws:
IOException
-