public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable c) |
static io.reactivex.functions.BiConsumer<OutputStream,ByteBuffer> |
defaultWriter() |
static void |
readFully(InputStream in,
byte[] b,
int off,
int len) |
static int |
readInt(InputStream in) |
static long |
readLong(InputStream in) |
static byte[] |
toBytes(ByteBuffer bb) |
static byte[] |
toBytes(int v) |
static byte[] |
toBytes(long v) |
static long |
toLong(byte[] b) |
public static io.reactivex.functions.BiConsumer<OutputStream,ByteBuffer> defaultWriter()
public static long toLong(byte[] b)
public static byte[] toBytes(long v)
public static byte[] toBytes(int v)
throws IOException
IOExceptionpublic static void close(Closeable c)
public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException
IOExceptionpublic static long readLong(InputStream in) throws IOException
IOExceptionpublic static int readInt(InputStream in) throws IOException
IOExceptionpublic static byte[] toBytes(ByteBuffer bb)
Copyright © 2018–2019. All rights reserved.