public class LuraWaveServiceImpl extends AbstractService implements LuraWaveService
| Modifier and Type | Field and Description | 
|---|---|
| static String | INVALID_LICENSE_MSGMessage to display if an invalid LuraWave license code is given. | 
| static String | LICENSE_PROPERTYSystem property to check for the LuraWave license code. | 
| static String | NO_LICENSE_MSGMessage to display if no LuraWave license code is given. | 
| static String | NO_LURAWAVE_MSGMessage displayed if the LuraWave LWF decoder library is not found. | 
| static String | STUB_FIELDIdentifying 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) | 
| void | decodeToMemoryGray8(byte[] image,
                   int limit,
                   int quality,
                   int scale) | 
| int | getHeight()Wraps  lwfDecoder.getHeight() | 
| String | getLicenseCode()Retrieves the current license code as a string. | 
| int | getWidth()Wraps  lwfDecoder.getWidth() | 
| void | initialize(InputStream stream) | 
| void | setLicenseCode(String license)Overrides the license code to use when initializing the LuraWave decoder. | 
checkClassDependencypublic 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
public LuraWaveServiceImpl()
                    throws DependencyException
DependencyExceptionpublic void setLicenseCode(String license)
LuraWaveServicesetLicenseCode in interface LuraWaveServicelicense - String license code.public String getLicenseCode()
LuraWaveServicegetLicenseCode in interface LuraWaveServicepublic void initialize(InputStream stream) throws IOException, DependencyException, ServiceException
LuraWaveServiceinitialize in interface LuraWaveServiceIOException - If parsing of the image header fails.DependencyException - If no license code was specified.ServiceException - If the license code is invalid.public int getWidth()
LuraWaveServicelwfDecoder.getWidth()getWidth in interface LuraWaveServicepublic int getHeight()
LuraWaveServicelwfDecoder.getHeight()getHeight in interface LuraWaveServicepublic void decodeToMemoryGray8(byte[] image,
                       int limit,
                       int quality,
                       int scale)
                         throws ServiceException
LuraWaveServicedecodeToMemoryGray8 in interface LuraWaveServiceServiceException - 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 ServiceException
LuraWaveServicedecodeToMemoryGray16 in interface LuraWaveServiceServiceException - If the license code is invalid.Copyright © 2014 Open Microscopy Environment