Package org.drasyl.node
Class IdentityFile
- java.lang.Object
-
- org.drasyl.node.IdentityFile
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Identity
readFrom(File file)
static Identity
readFrom(InputStream in)
static Identity
readFrom(String pathname)
static Identity
readFrom(Path path)
static void
writeTo(File file, Identity identity)
static void
writeTo(OutputStream out, Identity identity)
static void
writeTo(String pathname, Identity identity)
static void
writeTo(Path path, Identity identity)
-
-
-
Field Detail
-
CHARSET
protected static final Charset CHARSET
-
-
Method Detail
-
writeTo
public static void writeTo(OutputStream out, Identity identity) throws IOException
- Throws:
IOException
-
writeTo
public static void writeTo(File file, Identity identity) throws IOException
- Throws:
IOException
-
writeTo
public static void writeTo(String pathname, Identity identity) throws IOException
- Throws:
IOException
-
writeTo
public static void writeTo(Path path, Identity identity) throws IOException
- Throws:
IOException
-
readFrom
public static Identity readFrom(InputStream in) throws IOException
- Throws:
IOException
-
readFrom
public static Identity readFrom(File file) throws IOException
- Throws:
IOException
-
readFrom
public static Identity readFrom(Path path) throws IOException
- Throws:
IOException
-
readFrom
public static Identity readFrom(String pathname) throws IOException
- Throws:
IOException
-
-