public final class Ios extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
CRLF
The CRLF character (a.k.a
"\r\n"). |
| Modifier and Type | Method and Description |
|---|---|
static String |
guessContentType(Path path)
Try to guess content type of given file.
|
static byte[] |
toBytes(Path path)
Serialize file to an array of bytes.
|
static byte[] |
toUtf8Bytes(String value)
Serialize string to an array of bytes using UTF-8 encoding.
|
public static byte[] toUtf8Bytes(String value)
value - The string to serialize.public static byte[] toBytes(Path path) throws IOException
path - The path.IOException - If an I/O error occurs reading from the streamFiles.readAllBytes(Path)Copyright © 2019. All rights reserved.