1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
--- a/jp/gr/java_conf/dangan/util/lha/PostLz5Encoder.java
+++ a/jp/gr/java_conf/dangan/util/lha/PostLz5Encoder.java
@@ -219,7 +219,7 @@
this.buf[ this.index++ ] = (byte)pos;
this.buf[ this.index++ ] = (byte)( ( ( pos >> 4 ) & 0xF0 ) | matchlen );
- this.position += matchlen + this.Threshold;
+ this.position += matchlen + PostLz5Encoder.Threshold;
}
--- a/jp/gr/java_conf/dangan/util/lha/PostLzsEncoder.java
+++ a/jp/gr/java_conf/dangan/util/lha/PostLzsEncoder.java
@@ -200,8 +200,8 @@
this.position += this.matchLength + PostLzsEncoder.Threshold;
- this.out.writeBits( this.PositionBits, pos ); //throws IOException
- this.out.writeBits( this.LengthBits, this.matchLength ); //throws IOException
+ this.out.writeBits( PostLzsEncoder.PositionBits, pos ); //throws IOException
+ this.out.writeBits( PostLzsEncoder.LengthBits, this.matchLength ); //throws IOException
}
--- a/jp/gr/java_conf/dangan/util/lha/PreLzsDecoder.java
+++ a/jp/gr/java_conf/dangan/util/lha/PreLzsDecoder.java
@@ -213,8 +213,8 @@
this.position++;
return this.in.readBits( 8 );
}else{
- this.matchOffset = this.in.readBits( this.OffsetBits );
- this.matchLength = this.in.readBits( this.LengthBits );
+ this.matchOffset = this.in.readBits( PreLzsDecoder.OffsetBits );
+ this.matchLength = this.in.readBits( PreLzsDecoder.LengthBits );
return this.matchLength | 0x100;
}
}catch( BitDataBrokenException exception ){
|