|
ShrinkWrap Descriptors API Base 2.0.0-alpha-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of Descriptor supported by this importerpublic interface DescriptorImporter<T extends Descriptor>

A type capable of importing a Descriptor from
some existing source like a stream of bytes or File
| Method Summary | |
|---|---|
T |
from(File file)
Deprecated. Use instead fromFile(File) |
T |
from(InputStream in)
Deprecated. Use instead fromStream(InputStream) |
T |
from(InputStream in,
boolean close)
Deprecated. Use instead fromStream(InputStream, boolean) |
T |
from(String string)
Deprecated. Use instead fromString(String) |
T |
fromFile(File file)
Creates a new Descriptor from the given input file |
T |
fromFile(String file)
Creates a new Descriptor from the given input file path |
T |
fromStream(InputStream in)
Creates a new Descriptor from the given input stream, closing the specified
stream when done, if applicable for the given input stream implementation. |
T |
fromStream(InputStream in,
boolean close)
Creates a new Descriptor from the given input |
T |
fromString(String string)
Creates a new Descriptor from the given input XML data String |
| Method Detail |
|---|
@Deprecated
T from(File file)
throws IllegalArgumentException,
DescriptorImportException
fromFile(File)
Descriptor from the given input file
file - the input file
IllegalArgumentException - If the file was not specified, does not
exist, or is a directory
DescriptorImportException - If there was some error on import
T fromFile(File file)
throws IllegalArgumentException,
DescriptorImportException
Descriptor from the given input file
file - the input file
IllegalArgumentException - If the file was not specified, does not
exist, or is a directory
DescriptorImportException - If there was some error on import
T fromFile(String file)
throws IllegalArgumentException,
DescriptorImportException
Descriptor from the given input file path
file - Path to the input file
IllegalArgumentException - If the file was not specified, does not
exist, or is a directory
DescriptorImportException - If there was some error on import
@Deprecated
T from(InputStream in)
throws IllegalArgumentException,
DescriptorImportException
fromStream(InputStream)
Descriptor from the given input stream, closing the specified
stream when done, if applicable for the given input stream implementation.
in - the InputStream
IllegalArgumentException - If the stream was not specified
DescriptorImportException - If there was some error on import
T fromStream(InputStream in)
throws IllegalArgumentException,
DescriptorImportException
Descriptor from the given input stream, closing the specified
stream when done, if applicable for the given input stream implementation.
in - the InputStream
IllegalArgumentException - If the stream was not specified
DescriptorImportException - If there was some error on import
@Deprecated
T from(InputStream in,
boolean close)
throws IllegalArgumentException,
DescriptorImportException
fromStream(InputStream, boolean)
Descriptor from the given input
in - the InputStream to useclose - whether to close the specified stream or not
IllegalArgumentException - If the stream was not specified
DescriptorImportException - If there was some error on import
T fromStream(InputStream in,
boolean close)
throws IllegalArgumentException,
DescriptorImportException
Descriptor from the given input
in - the InputStream to useclose - whether to close the specified stream or not
IllegalArgumentException - If the stream was not specified
DescriptorImportException - If there was some error on import
@Deprecated
T from(String string)
throws IllegalArgumentException,
DescriptorImportException
fromString(String)
Descriptor from the given input XML data String
string - the resource data
IllegalArgumentException - If the String was not specified
DescriptorImportException
T fromString(String string)
throws IllegalArgumentException,
DescriptorImportException
Descriptor from the given input XML data String
string - the resource URI
IllegalArgumentException - If the String was not specified
DescriptorImportException
|
ShrinkWrap Descriptors API Base 2.0.0-alpha-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||