public class InlineURLFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
pattern |
protected static URLStreamHandlerFactory |
shf |
| Constructor and Description |
|---|
InlineURLFactory() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(URL url) |
static void |
install() |
static <T> byte[] |
marshall(T content) |
static <T> T |
newObject(Class<T> clazz,
URL url) |
static URL |
newURL(String mimetype,
byte[] data) |
static <T> URL |
newURL(T content) |
static void |
uninstall() |
static <T> T |
unmarshall(Class<T> clazz,
byte[] data) |
protected static URLStreamHandlerFactory shf
public InlineURLFactory()
public static void install()
public static void uninstall()
public static <T> byte[] marshall(T content) throws IOException
IOExceptionpublic static <T> T unmarshall(Class<T> clazz, byte[] data) throws IOException
IOExceptionpublic static <T> URL newURL(T content) throws IOException
IOExceptionpublic static URL newURL(String mimetype, byte[] data) throws IOException
IOExceptionpublic static <T> T newObject(Class<T> clazz, URL url) throws IOException
IOExceptionpublic static byte[] getBytes(URL url) throws IOException
IOExceptionCopyright © 2016 Nuxeo SA. All rights reserved.