public class LuraWaveServiceImpl extends loci.common.services.AbstractService implements LuraWaveService
Modifier and Type | Field and Description |
---|---|
private Object |
delegate
LuraWave decoder delegate.
|
static String |
INVALID_LICENSE_MSG
Message to display if an invalid LuraWave license code is given.
|
private String |
license
License code.
|
static String |
LICENSE_PROPERTY
System property to check for the LuraWave license code.
|
static String |
NO_LICENSE_MSG
Message to display if no LuraWave license code is given.
|
static String |
NO_LURAWAVE_MSG
Message displayed if the LuraWave LWF decoder library is not found.
|
static String |
STUB_FIELD
Identifying field in stub class.
|
Constructor and Description |
---|
LuraWaveServiceImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeToMemoryGray16(short[] image,
int imageoffset,
int limit,
int quality,
int scale,
int pdx,
int pdy,
int clip_x,
int clip_y,
int clip_w,
int clip_h)
Wraps
lwfDecoder.decodeToMemoryGray16(short[], int, int, int, int, int, int, int, int, int, int) . |
void |
decodeToMemoryGray8(byte[] image,
int limit,
int quality,
int scale)
Wraps
lwfDecoder.decodeToMemoryGray8(byte[], int, int, int) . |
int |
getHeight()
Wraps
lwfDecoder.getHeight() |
String |
getLicenseCode()
Retrieves the current license code as a string.
|
int |
getWidth()
Wraps
lwfDecoder.getWidth() |
void |
initialize(InputStream stream)
Wraps
lwfDecoder.lwfDecoder(InputStream, String, String) . |
private void |
initLicense() |
void |
setLicenseCode(String license)
Overrides the license code to use when initializing the LuraWave decoder.
|
public static final String LICENSE_PROPERTY
public static final String NO_LURAWAVE_MSG
public static final String NO_LICENSE_MSG
public static final String INVALID_LICENSE_MSG
public static final String STUB_FIELD
private transient Object delegate
private String license
public LuraWaveServiceImpl() throws loci.common.services.DependencyException
loci.common.services.DependencyException
public void setLicenseCode(String license)
LuraWaveService
setLicenseCode
in interface LuraWaveService
license
- String license code.public String getLicenseCode()
LuraWaveService
getLicenseCode
in interface LuraWaveService
public void initialize(InputStream stream) throws IOException, loci.common.services.DependencyException, loci.common.services.ServiceException
LuraWaveService
lwfDecoder.lwfDecoder(InputStream, String, String)
.initialize
in interface LuraWaveService
IOException
- If parsing of the image header fails.loci.common.services.DependencyException
- If no license code was specified.loci.common.services.ServiceException
- If the license code is invalid.public int getWidth()
LuraWaveService
lwfDecoder.getWidth()
getWidth
in interface LuraWaveService
public int getHeight()
LuraWaveService
lwfDecoder.getHeight()
getHeight
in interface LuraWaveService
public void decodeToMemoryGray8(byte[] image, int limit, int quality, int scale) throws loci.common.services.ServiceException
LuraWaveService
lwfDecoder.decodeToMemoryGray8(byte[], int, int, int)
.decodeToMemoryGray8
in interface LuraWaveService
loci.common.services.ServiceException
- If the license code is invalid.public void decodeToMemoryGray16(short[] image, int imageoffset, int limit, int quality, int scale, int pdx, int pdy, int clip_x, int clip_y, int clip_w, int clip_h) throws loci.common.services.ServiceException
LuraWaveService
lwfDecoder.decodeToMemoryGray16(short[], int, int, int, int, int, int, int, int, int, int)
.decodeToMemoryGray16
in interface LuraWaveService
loci.common.services.ServiceException
- If the license code is invalid.private void initLicense() throws loci.common.services.DependencyException
loci.common.services.DependencyException
Copyright © 2017 Open Microscopy Environment