Class StringAsset

  • All Implemented Interfaces:
    Asset

    public class StringAsset
    extends Object
    implements Asset
    Implementation of an Asset backed by a String
    Version:
    $Revision: $
    Author:
    Dan Allen
    • Constructor Detail

      • StringAsset

        public StringAsset​(String content)
        Creates a new Asset instance backed by the specified String
        Parameters:
        content - The content represented as a String
        Throws:
        IllegalArgumentException - If the contents were not specified