Class SourceAdapter

java.lang.Object
us.irdev.bedrock.bag.SourceAdapter
Direct Known Subclasses:
SourceAdapterBedrock, SourceAdapterHttp, SourceAdapterReader

public class SourceAdapter extends Object
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 Details

    • mimeType

      protected String mimeType
    • stringData

      protected String stringData
  • Constructor Details

    • SourceAdapter

      public SourceAdapter()
    • SourceAdapter

      public SourceAdapter(String stringData, String mimeType)
  • Method Details