public class URLStreamRef extends Object implements StreamRef
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected URL |
url |
Constructor and Description |
---|
URLStreamRef(URL url) |
URLStreamRef(URL url,
String name) |
Modifier and Type | Method and Description |
---|---|
URL |
asURL()
Get an URL to that stream.
|
String |
getId()
Get an unique identifier for this stream.
|
InputStream |
getStream()
Get the stream content.
|
public URLStreamRef(URL url)
public URLStreamRef(URL url, String name)
public String getId()
StreamRef
public InputStream getStream() throws IOException
StreamRef
getStream
in interface StreamRef
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.