public class ByteArrayResource extends Resource
Modifier and Type | Field and Description |
---|---|
protected byte[] |
array |
protected String |
name |
Modifier and Type | Method and Description |
---|---|
static ByteArrayResource |
getInstance(ResourceName resName,
byte[] array,
String name) |
String |
getPortableResourceName()
The resource portable name (without workspace info)
|
CommandResponse |
getResourceAsResponse()
CommandResponse that will send the resource to the browser
|
InputStream |
getResourceAsStream()
An InputStream to the resource bytes.
|
String |
getResourceFileName()
The resource file name when deployed
|
String |
getResourceName()
The resource full name
|
getResourceUrl
protected byte[] array
protected String name
public static ByteArrayResource getInstance(ResourceName resName, byte[] array, String name)
public CommandResponse getResourceAsResponse()
Resource
getResourceAsResponse
in class Resource
public InputStream getResourceAsStream()
Resource
getResourceAsStream
in class Resource
public String getResourceName()
Resource
getResourceName
in class Resource
public String getResourceFileName()
Resource
getResourceFileName
in class Resource
public String getPortableResourceName()
getPortableResourceName
in class Resource
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.