mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
renamed getBytes() to getBytesFromStream()
This commit is contained in:
parent
8d0d1bfb8b
commit
bf724d080b
1 changed files with 7 additions and 1 deletions
|
@ -175,7 +175,13 @@ public final class FileUtilities {
|
|||
}
|
||||
}
|
||||
|
||||
public static byte[] getBytes(InputStream is) throws IOException {
|
||||
/**
|
||||
* Reads the bytes from the stream into a byte array
|
||||
* @param is the input stream to read
|
||||
* @return a byte[] containing the bytes from the stream.
|
||||
* @throws IOException if an I/O error occurs reading
|
||||
*/
|
||||
public static byte[] getBytesFromStream(InputStream is) throws IOException {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
byte[] bytes = new byte[4096];
|
||||
int n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue