Class writing, call graph, eclipse project
This commit is contained in:
@@ -3,6 +3,7 @@ package info.sigterm.deob.pool;
|
||||
import info.sigterm.deob.ConstantPool;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
public class UTF8 extends PoolEntry
|
||||
@@ -51,4 +52,14 @@ public class UTF8 extends PoolEntry
|
||||
{
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(DataOutputStream out) throws IOException
|
||||
{
|
||||
java.lang.String s = getValue();
|
||||
byte[] bytes = s.getBytes("UTF-8");
|
||||
|
||||
out.writeShort(bytes.length);
|
||||
out.write(bytes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user