Class SourceAdapterReader

java.lang.Object
us.irdev.bedrock.bag.SourceAdapter
us.irdev.bedrock.bag.SourceAdapterReader

public class SourceAdapterReader extends SourceAdapter
  • Constructor Details

    • SourceAdapterReader

      public SourceAdapterReader(Reader reader, String mimeType) throws IOException
      Throws:
      IOException
    • SourceAdapterReader

      public SourceAdapterReader(String string, String mimeType) throws IOException
      Read directly from a string
      Parameters:
      string -
      mimeType -
      Throws:
      IOException
    • SourceAdapterReader

      public SourceAdapterReader(InputStream inputStream, String mimeType) throws IOException
      Read string data from any input stream
      Parameters:
      inputStream -
      mimeType -
      Throws:
      IOException
    • SourceAdapterReader

      public SourceAdapterReader(File file) throws IOException
      Read string data from a file
      Parameters:
      file -
      Throws:
      IOException
    • SourceAdapterReader

      public SourceAdapterReader(File file, String mimeType) throws IOException
      Read string data from a file when the MIME-type is known
      Parameters:
      file -
      mimeType -
      Throws:
      IOException
    • SourceAdapterReader

      public SourceAdapterReader(Class context, String name) throws IOException
      Read string data from a resource
      Parameters:
      context -
      name -
      Throws:
      IOException
    • SourceAdapterReader

      public SourceAdapterReader(Class context, String name, String mimeType) throws IOException
      Read string data from a resource when the MIME-type is known
      Parameters:
      context -
      name -
      mimeType -
      Throws:
      IOException