| Package | Description |
|---|---|
| java.io | |
| java.lang | |
| java.net |
| Modifier and Type | Method and Description |
|---|---|
String |
ObjectInputStream.readLine()
Deprecated.
This method does not properly convert bytes to characters.
see DataInputStream for the details and alternatives.
|
String |
DataInputStream.readLine()
Deprecated.
This method does not properly convert bytes to characters.
As of JDK 1.1, the preferred way to read lines of text is via the
BufferedReader.readLine() method. Programs that use the
DataInputStream class to read lines can be converted to use
the BufferedReader class by replacing code of the form:
with:
|
String |
ByteArrayOutputStream.toString(int hibyte)
Deprecated.
This method does not properly convert bytes into characters.
As of JDK 1.1, the preferred way to do this is via the
toString(String enc) method, which takes an encoding-name
argument, or the toString() method, which uses the
platform's default character encoding. |
abstract void |
ObjectOutputStream.PutField.write(ObjectOutput out)
Deprecated.
This method does not write the values contained by this
PutField object in a proper format, and may
result in corruption of the serialization stream. The
correct way to write PutField data is by
calling the ObjectOutputStream.writeFields()
method. |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
ClassLoader.defineClass(byte[] b,
int off,
int len)
Deprecated.
Replaced by
defineClass(String, byte[], int, int) |
void |
String.getBytes(int srcBegin,
int srcEnd,
byte[] dst,
int dstBegin)
Deprecated.
This method does not properly convert characters into
bytes. As of JDK 1.1, the preferred way to do this is via the
String.getBytes() method, which uses the platform's default charset. |
static boolean |
Character.isSpace(char ch)
Deprecated.
Replaced by isWhitespace(char).
|
| Constructor and Description |
|---|
String(byte[] ascii,
int hibyte)
Deprecated.
This method does not properly convert bytes into
characters. As of JDK 1.1, the preferred way to do this is via the
String constructors that take a Charset, charset name, or that use the platform's
default charset. |
String(byte[] ascii,
int hibyte,
int offset,
int count)
Deprecated.
This method does not properly convert bytes into characters.
As of JDK 1.1, the preferred way to do this is via the
String constructors that take a Charset, charset name, or that use the platform's
default charset. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref)
Deprecated.
Use setURL(URL, String, String, int, String, String, String,
String);
|
Copyright © 2013 API Design. All Rights Reserved.