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
IOException
public static <T> T unmarshall(Class<T> clazz, byte[] data) throws IOException
IOException
public static <T> URL newURL(T content) throws IOException
IOException
public static URL newURL(String mimetype, byte[] data) throws IOException
IOException
public static <T> T newObject(Class<T> clazz, URL url) throws IOException
IOException
public static byte[] getBytes(URL url) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.