public class EOLConvertingInputStream
extends java.io.InputStream
Description:
Title:首亨软件 - TSS/CRM等
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CONVERT_BOTH
Converts single '\r' and '\n' to '\r\n'
|
static int |
CONVERT_CR
Converts single '\r' to '\r\n'
|
static int |
CONVERT_LF
Converts single '\n' to '\r\n'
|
| 构造器和说明 |
|---|
EOLConvertingInputStream(java.io.InputStream in)
Creates a new
EOLConvertingInputStream
instance converting bytes in the given InputStream. |
EOLConvertingInputStream(java.io.InputStream in,
int flags)
Creates a new
EOLConvertingInputStream
instance converting bytes in the given InputStream. |
public static final int CONVERT_CR
public static final int CONVERT_LF
public static final int CONVERT_BOTH
public EOLConvertingInputStream(java.io.InputStream in)
EOLConvertingInputStream
instance converting bytes in the given InputStream.
The flag CONVERT_BOTH is the default.in - the InputStream to read from.public EOLConvertingInputStream(java.io.InputStream in,
int flags)
EOLConvertingInputStream
instance converting bytes in the given InputStream.in - the InputStream to read from.flags - one of CONVERT_CR, CONVERT_LF or
CONVERT_BOTH.public void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.InputStreamjava.io.IOException - on I/O errors.public int read()
throws java.io.IOException
read 在类中 java.io.InputStreamjava.io.IOExceptionInputStream.read()