Top Description Methods
javax.visrec

public Interface ImageFactory<T>

Type Parameters
<T>
the type of object to be returned after getting image from Path, URL or InputStream
Imports
java.io.IOException, .InputStream, java.net.URL, java.nio.file.Path

This interface provides a standard way to get/read different(specified) kinds of image from file, url or input stream.
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

T object.
getImage
(Path
The source file.
path
)

Retrieve the source through a Path object and transform it into T.

public T

Returns:

T object.
getImage
(URL
The source.
file
)

Retrieve the source through a URL object and transform it into T.

public T

Returns:

T object.
getImage
(InputStream
The source.
file
)

Retrieve the source through an InputStream object and transform it into T.

Method Detail

getImageback to summary
public T getImage(Path path) throws IOException

Retrieve the source through a Path object and transform it into T.

Parameters
path:Path

The source file.

Returns:T

T object.

Exceptions
IOException:
If the file I/O went wrong or couldn't transform the source into a T object.
getImageback to summary
public T getImage(URL file) throws IOException

Retrieve the source through a URL object and transform it into T.

Parameters
file:URL

The source.

Returns:T

T object.

Exceptions
IOException:
If the I/O went wrong or couldn't transform the source into a T object.
getImageback to summary
public T getImage(InputStream file) throws IOException

Retrieve the source through an InputStream object and transform it into T.

Parameters
file:InputStream

The source.

Returns:T

T object.

Exceptions
IOException:
If the I/O went wrong or couldn't transform the source into a T object.