T
- The type of Descriptor
supported by this importerpublic interface DescriptorImporter<T extends Descriptor>
Descriptor
from some existing source like a stream of bytes or File
Modifier and Type | Method and Description |
---|---|
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 |
@Deprecated T from(File file) throws IllegalArgumentException, DescriptorImportException
fromFile(File)
Descriptor
from the given input filefile
- the input fileIllegalArgumentException
- If the file was not specified, does not exist, or is a directoryDescriptorImportException
- If there was some error on importT fromFile(File file) throws IllegalArgumentException, DescriptorImportException
Descriptor
from the given input filefile
- the input fileIllegalArgumentException
- If the file was not specified, does not exist, or is a directoryDescriptorImportException
- If there was some error on importT fromFile(String file) throws IllegalArgumentException, DescriptorImportException
Descriptor
from the given input file pathfile
- Path to the input fileIllegalArgumentException
- If the file was not specified, does not exist, or is a directoryDescriptorImportException
- 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 InputStreamIllegalArgumentException
- If the stream was not specifiedDescriptorImportException
- If there was some error on importT 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 InputStreamIllegalArgumentException
- If the stream was not specifiedDescriptorImportException
- If there was some error on import@Deprecated T from(InputStream in, boolean close) throws IllegalArgumentException, DescriptorImportException
fromStream(InputStream, boolean)
Descriptor
from the given inputin
- the InputStream to useclose
- whether to close the specified stream or notIllegalArgumentException
- If the stream was not specifiedDescriptorImportException
- If there was some error on importT fromStream(InputStream in, boolean close) throws IllegalArgumentException, DescriptorImportException
Descriptor
from the given inputin
- the InputStream to useclose
- whether to close the specified stream or notIllegalArgumentException
- If the stream was not specifiedDescriptorImportException
- 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 dataIllegalArgumentException
- If the String was not specifiedDescriptorImportException
T fromString(String string) throws IllegalArgumentException, DescriptorImportException
Descriptor
from the given input XML data String
string
- the resource URIIllegalArgumentException
- If the String was not specifiedDescriptorImportException
Copyright © 2019 JBoss by Red Hat. All rights reserved.