public class KeyFileIOs extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
KeyFileIOs.KeyFormat |
| 构造器和说明 |
|---|
KeyFileIOs() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
readKey(File file) |
static byte[] |
readKey(File file,
KeyFileIOs.KeyFormat keyFormat) |
static byte[] |
readKey(Resource resource) |
static byte[] |
readKey(Resource resource,
KeyFileIOs.KeyFormat keyFormat) |
static String |
readKeyAsString(byte[] bytes) |
static String |
readKeyAsString(InputStream inputStream) |
static String |
readKeyAsString(Resource resource) |
static String |
readKeyFile(Resource resource)
已过时。
|
static void |
writeKey(byte[] keyBytes,
File file) |
static void |
writeKey(byte[] keyBytes,
File file,
KeyFileIOs.KeyFormat keyFormat) |
static void |
writeKey(byte[] keyBytes,
File file,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine) |
static void |
writeKey(byte[] keyBytes,
OutputStream outputStream,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine) |
static void |
writeKey(byte[] keyBytes,
StringBuilder stringBuilder,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine) |
static void |
writeKey(byte[] keyBytes,
Writer writer,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine) |
static void |
writeKey(Key key,
File file) |
static void |
writeKey(Key key,
File file,
KeyFileIOs.KeyFormat keyFormat) |
static void |
writeKey(Key key,
File file,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine) |
public static byte[] readKey(File file)
public static byte[] readKey(File file, KeyFileIOs.KeyFormat keyFormat)
public static byte[] readKey(Resource resource)
public static byte[] readKey(Resource resource, KeyFileIOs.KeyFormat keyFormat)
public static String readKeyAsString(byte[] bytes)
public static String readKeyAsString(InputStream inputStream)
@Deprecated public static String readKeyFile(Resource resource)
public static void writeKey(@NonNull Key key, @NonNull File file) throws IOException
IOExceptionpublic static void writeKey(@NonNull Key key, @NonNull File file, KeyFileIOs.KeyFormat keyFormat) throws IOException
IOExceptionpublic static void writeKey(@NonNull Key key, @NonNull File file, KeyFileIOs.KeyFormat keyFormat, @Nullable String startLine, @Nullable String endLine) throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
File file)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
File file,
KeyFileIOs.KeyFormat keyFormat)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
File file,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
OutputStream outputStream,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
Writer writer,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
StringBuilder stringBuilder,
KeyFileIOs.KeyFormat keyFormat,
String startLine,
String endLine)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.