Class StringAsset

java.lang.Object
org.jboss.shrinkwrap.api.asset.StringAsset
All Implemented Interfaces:
Asset

public class StringAsset extends Object implements Asset
Implementation of an Asset backed by a String
Version:
$Revision: $
  • Field Details

    • log

      private static final Logger log
      Logger
    • content

      private final String content
      Underlying content.
  • Constructor Details

    • 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
  • Method Details