Changeset 2767


Ignore:
Timestamp:
05/08/07 18:34:13 (13 years ago)
Author:
curtis
Message:

Look for license code every time a plane is extracted instead of statically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/codec/LuraWaveCodec.java

    r2711 r2767  
    6363 
    6464  static { 
    65     licenseCode = System.getProperty("lurawave.license"); 
    6665    r = new ReflectedUniverse(); 
    6766    try { 
    6867      r.exec("import com.luratech.lwf.lwfDecoder"); 
    69       r.setVar("licenseCode", licenseCode); 
    7068      r.setVar("-1", -1); 
    7169      r.setVar("1024", 1024); 
     
    8987  public byte[] decompress(byte[] input) throws FormatException { 
    9088    if (noLuraWave) throw new FormatException(NO_LURAWAVE_MSG); 
     89    licenseCode = System.getProperty("lurawave.license"); 
    9190    if (licenseCode == null) throw new FormatException(NO_LICENSE_MSG); 
    9291    r.setVar("stream", 
    9392      new BufferedInputStream(new ByteArrayInputStream(input), 4096)); 
    9493    try { 
     94      r.setVar("licenseCode", licenseCode); 
    9595      r.exec("lwf = new lwfDecoder(stream, null, licenseCode)"); 
    9696    } 
Note: See TracChangeset for help on using the changeset viewer.