[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-165) Create StringAsset

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Thu Apr 29 13:55:05 EDT 2010


    [ https://jira.jboss.org/jira/browse/SHRINKWRAP-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12528121#action_12528121 ] 

Andrew Lee Rubinger commented on SHRINKWRAP-165:
------------------------------------------------

Probably this impl should delegate to ByteArrayAsset.

> Create StringAsset
> ------------------
>
>                 Key: SHRINKWRAP-165
>                 URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-165
>             Project: ShrinkWrap
>          Issue Type: Feature Request
>          Components: api
>            Reporter: Andrew Lee Rubinger
>
> Create the functional equivalent of:
> new Asset()
>       {
>          @Override
>          public InputStream openStream()
>          {
>             return new ByteArrayInputStream("Some String".getBytes());
>          }
>       }
> User code should look like:
> new StringAsset("string");
> new StringAsset("string",Charset);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list