[shrinkwrap-issues] [JBoss JIRA] Updated: (SHRINKWRAP-165) Create StringAsset
Dan Allen (JIRA)
jira-events at lists.jboss.org
Sun May 2 16:22:06 EDT 2010
[ https://jira.jboss.org/jira/browse/SHRINKWRAP-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Allen updated SHRINKWRAP-165:
---------------------------------
Attachment: SHRINKWRAP-165-v1.txt
Attached proposed patch. I decided it was simpler to just create a custom implementation rather than delegate to the ByteArrayAsset. However, I did not implement the suggested charset support.
> 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
> Assignee: Ken Gullaksen
> Attachments: SHRINKWRAP-165-v1.txt
>
>
> 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