|
|
@ -24,8 +24,9 @@ public class SocketHelper { |
|
|
|
public static byte[] toIntByteArray(InputStream in) throws IOException { |
|
|
|
ByteArrayOutputStream out = new ByteArrayOutputStream(); |
|
|
|
byte[] buffer = new byte[100]; |
|
|
|
|
|
|
|
System.out.println("zmt-toIntByteArray--" + buffer[0] + buffer[1] + buffer[2] + buffer[3] + buffer[4] + buffer[5] + " " + Arrays.toString(buffer)); |
|
|
|
System.out.println("zmt-toIntByteArray--" + buffer[0] + buffer[1] + buffer[2] + buffer[3] + buffer[4] + buffer[5] + " " + Arrays.toString(buffer) |
|
|
|
); |
|
|
|
// +new String(buffer.array() |
|
|
|
int n = 0; |
|
|
|
while ((n = in.read(buffer)) != -1) { |
|
|
|
out.write(buffer, 0, n); |
|
|
|