public class IoUtils extends Object
限定符和类型 | 字段和说明 |
---|---|
static int |
EOF |
限定符和类型 | 方法和说明 |
---|---|
static int |
copy(InputStream input,
OutputStream output)
Copies bytes
|
static byte[] |
toByteArray(InputStream input)
Gets the contents of an InputStream as a byte[].
|
static byte[] |
toByteArray(InputStream input,
int size)
Gets the contents of an InputStream as a byte[].
|
public static final int EOF
public static byte[] toByteArray(InputStream input) throws IOException
input
- IOException
public static byte[] toByteArray(InputStream input, int size) throws IOException
input
- size
- IOException
public static int copy(InputStream input, OutputStream output) throws IOException
input
- output
- IOException
Copyright © 2018–2021 Alibaba Group. All rights reserved.