Class PuttyKeyReader
- java.lang.Object
-
- org.apache.sshd.common.config.keys.loader.putty.PuttyKeyReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class PuttyKeyReader extends java.lang.Object implements java.io.Closeable
Helper class forPutty
key files decoders
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.DataInputStream
di
-
Constructor Summary
Constructors Constructor Description PuttyKeyReader(java.io.InputStream s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
byte[]
read(int maxAllowed)
java.math.BigInteger
readInt()
java.lang.String
readString()
java.lang.String
readString(java.nio.charset.Charset cs)
void
skip()
-
-
-
Method Detail
-
skip
public void skip() throws java.io.IOException
- Throws:
java.io.IOException
-
readString
public java.lang.String readString() throws java.io.IOException
- Throws:
java.io.IOException
-
readString
public java.lang.String readString(java.nio.charset.Charset cs) throws java.io.IOException
- Throws:
java.io.IOException
-
readInt
public java.math.BigInteger readInt() throws java.io.IOException
- Throws:
java.io.IOException
-
read
public byte[] read(int maxAllowed) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-