com.jscape.inet.ssh.util
Class ReadUtil
java.lang.Object
com.jscape.inet.ssh.util.ReadUtil
public class ReadUtil
- extends java.lang.Object
- Version:
- 1.0
- Author:
- Alex Usun
Method Summary |
static void |
read(byte[] b,
java.io.InputStream in)
|
static void |
read(byte[] b,
int off,
int len,
java.io.InputStream in)
|
static int |
read(java.io.InputStream in)
|
static byte[] |
read(int dataLength,
java.io.InputStream in)
|
static java.lang.String |
readLine(java.io.InputStream in)
|
static java.lang.String |
readLine(java.io.InputStream in,
java.lang.String lineSeparator)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
read
public static int read(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in
-
- Returns:
- int
- Throws:
java.io.IOException
read
public static void read(byte[] b,
int off,
int len,
java.io.InputStream in)
throws java.io.IOException
- Parameters:
b
- off
- len
- in
-
- Throws:
java.io.IOException
read
public static void read(byte[] b,
java.io.InputStream in)
throws java.io.IOException
- Parameters:
b
- in
-
- Throws:
java.io.IOException
read
public static byte[] read(int dataLength,
java.io.InputStream in)
throws java.io.IOException
- Parameters:
dataLength
- in
-
- Returns:
- byte array
- Throws:
java.io.IOException
readLine
public static java.lang.String readLine(java.io.InputStream in,
java.lang.String lineSeparator)
throws java.io.IOException
- Parameters:
in
- lineSeparator
-
- Returns:
- String
- Throws:
java.io.IOException
readLine
public static java.lang.String readLine(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in
-
- Returns:
- String
- Throws:
java.io.IOException
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved