mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 14:15:20 +00:00
110 lines
2.8 KiB
Java
110 lines
2.8 KiB
Java
package am;
|
|
|
|
import al.AbstractInAlPackage;
|
|
import java.io.IOException;
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.ByteOrder;
|
|
import java.nio.channels.SeekableByteChannel;
|
|
|
|
public class AmInterfaceEcho extends a {
|
|
public static String b = "##DG";
|
|
|
|
private int c = 0;
|
|
|
|
private long AbstractInAlPackage;
|
|
|
|
private long e;
|
|
|
|
private long f;
|
|
|
|
private long g;
|
|
|
|
private byte h;
|
|
|
|
private AmInterfaceEcho(SeekableByteChannel paramSeekableByteChannel, long paramLong) {
|
|
super(paramSeekableByteChannel, paramLong);
|
|
}
|
|
|
|
private void c(long paramLong) {
|
|
this.AbstractInAlPackage = paramLong;
|
|
}
|
|
|
|
private void AbstractInAlPackage(long paramLong) {
|
|
this.e = paramLong;
|
|
}
|
|
|
|
private void e(long paramLong) {
|
|
this.f = paramLong;
|
|
}
|
|
|
|
private void f(long paramLong) {
|
|
this.g = paramLong;
|
|
}
|
|
|
|
private void a(byte paramByte) {
|
|
this.h = paramByte;
|
|
}
|
|
|
|
public e e() {
|
|
return (this.AbstractInAlPackage > 0L) ? b(this.a, this.AbstractInAlPackage) : null;
|
|
}
|
|
|
|
public c f() {
|
|
return (this.e > 0L) ? c.b(this.a, this.e) : null;
|
|
}
|
|
|
|
public a g() {
|
|
if (this.f > 0L) {
|
|
String str = a(this.a, this.f);
|
|
if (str.equals("##DT"))
|
|
return g.b(this.a, this.f);
|
|
if (str.equals("##DZ"))
|
|
return null;
|
|
if (str.equals(f.b))
|
|
return f.b(this.a, this.f);
|
|
if (str.equals("##HL"))
|
|
return null;
|
|
throw new IOException("Unsupported block type for data: " + str);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public String toString() {
|
|
return "DGBLOCK [lnkDgNext=" + this.AbstractInAlPackage + ", lnkCgFirst=" + this.e + ", lnkData=" + this.f + ", lnkMdComment=" + this.g + ", recIdSize=" + this.h + "]";
|
|
}
|
|
|
|
public static e b(SeekableByteChannel paramSeekableByteChannel, long paramLong) {
|
|
e e1 = new e(paramSeekableByteChannel, paramLong);
|
|
ByteBuffer byteBuffer = ByteBuffer.allocate(64);
|
|
byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
|
|
paramSeekableByteChannel.position(paramLong);
|
|
paramSeekableByteChannel.read(byteBuffer);
|
|
byteBuffer.rewind();
|
|
e1.a(AbstractInAlPackage.a(byteBuffer, 4));
|
|
if (!e1.b().equals(b))
|
|
throw new IOException("Wrong block type - expected '" + b + "', found '" + e1.b() + "'");
|
|
byteBuffer.get(new byte[4]);
|
|
e1.a(AbstractInAlPackage.e(byteBuffer));
|
|
e1.b(AbstractInAlPackage.e(byteBuffer));
|
|
e1.c(AbstractInAlPackage.g(byteBuffer));
|
|
e1.AbstractInAlPackage(AbstractInAlPackage.g(byteBuffer));
|
|
e1.e(AbstractInAlPackage.g(byteBuffer));
|
|
e1.f(AbstractInAlPackage.g(byteBuffer));
|
|
e1.a(AbstractInAlPackage.a(byteBuffer));
|
|
return e1;
|
|
}
|
|
|
|
public int h() {
|
|
return this.c;
|
|
}
|
|
|
|
public void a(int paramInt) {
|
|
this.c = paramInt;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/am/e.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |