Package | Description |
---|---|
java.io | |
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Class and Description |
---|---|
class |
CharConversionException
Base class for character conversion exceptions.
|
class |
EOFException
Signals that an end of file or end of stream has been reached
unexpectedly during input.
|
class |
FileNotFoundException
Signals that an attempt to open the file denoted by a specified pathname
has failed.
|
class |
InterruptedIOException
Signals that an I/O operation has been interrupted.
|
class |
InvalidClassException
Thrown when the Serialization runtime detects one of the following
problems with a Class.
|
class |
InvalidObjectException
Indicates that one or more deserialized objects failed validation
tests.
|
class |
NotActiveException
Thrown when serialization or deserialization is not active.
|
class |
NotSerializableException
Thrown when an instance is required to have a Serializable interface.
|
class |
ObjectStreamException
Superclass of all exceptions specific to Object Stream classes.
|
class |
OptionalDataException
Exception indicating the failure of an object read operation due to
unread primitive data, or the end of data belonging to a serialized
object in the stream.
|
class |
StreamCorruptedException
Thrown when control information that was read from an object stream
violates internal consistency checks.
|
class |
SyncFailedException
Signals that a sync operation has failed.
|
class |
UnsupportedEncodingException
The Character Encoding is not supported.
|
class |
UTFDataFormatException
Signals that a malformed string in
modified UTF-8
format has been read in a data
input stream or by any class that implements the data input
interface.
|
class |
WriteAbortedException
Signals that one of the ObjectStreamExceptions was thrown during a
write operation.
|
Modifier and Type | Method and Description |
---|---|
Writer |
Writer.append(char c)
Appends the specified character to this writer.
|
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
int |
SequenceInputStream.available()
Returns an estimate of the number of bytes that can be read (or
skipped over) from the current underlying input stream without
blocking by the next invocation of a method for the current
underlying input stream.
|
int |
PushbackInputStream.available()
Returns an estimate of the number of bytes that can be read (or
skipped over) from this input stream without blocking by the next
invocation of a method for this input stream.
|
int |
PipedInputStream.available()
Returns the number of bytes that can be read from this input
stream without blocking.
|
int |
ObjectInputStream.available()
Returns the number of bytes that can be read without blocking.
|
int |
ObjectInput.available()
Returns the number of bytes that can be read
without blocking.
|
int |
LineNumberInputStream.available()
Deprecated.
Returns the number of bytes that can be read from this input
stream without blocking.
|
int |
InputStream.available()
Returns an estimate of the number of bytes that can be read (or
skipped over) from this input stream without blocking by the next
invocation of a method for this input stream.
|
int |
FilterInputStream.available()
Returns an estimate of the number of bytes that can be read (or
skipped over) from this input stream without blocking by the next
caller of a method for this input stream.
|
int |
FileInputStream.available()
Returns an estimate of the number of remaining bytes that can be read (or
skipped over) from this input stream without blocking by the next
invocation of a method for this input stream.
|
int |
BufferedInputStream.available()
Returns an estimate of the number of bytes that can be read (or
skipped over) from this input stream without blocking by the next
invocation of a method for this input stream.
|
abstract void |
Writer.close()
Closes the stream, flushing it first.
|
void |
StringWriter.close()
Closing a StringWriter has no effect.
|
void |
SequenceInputStream.close()
Closes this input stream and releases any system resources
associated with the stream.
|
abstract void |
Reader.close()
Closes the stream and releases any system resources associated with
it.
|
void |
RandomAccessFile.close()
Closes this random access file stream and releases any system
resources associated with the stream.
|
void |
PushbackReader.close()
Closes the stream and releases any system resources associated with
it.
|
void |
PushbackInputStream.close()
Closes this input stream and releases any system resources
associated with the stream.
|
void |
PipedWriter.close()
Closes this piped output stream and releases any system resources
associated with this stream.
|
void |
PipedReader.close()
Closes this piped stream and releases any system resources
associated with the stream.
|
void |
PipedOutputStream.close()
Closes this piped output stream and releases any system resources
associated with this stream.
|
void |
PipedInputStream.close()
Closes this piped input stream and releases any system resources
associated with the stream.
|
void |
OutputStreamWriter.close() |
void |
OutputStream.close()
Closes this output stream and releases any system resources
associated with this stream.
|
void |
ObjectOutputStream.close()
Closes the stream.
|
void |
ObjectOutput.close()
Closes the stream.
|
void |
ObjectInputStream.close()
Closes the input stream.
|
void |
ObjectInput.close()
Closes the input stream.
|
void |
InputStreamReader.close() |
void |
InputStream.close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
FilterWriter.close() |
void |
FilterReader.close() |
void |
FilterOutputStream.close()
Closes this output stream and releases any system resources
associated with the stream.
|
void |
FilterInputStream.close()
Closes this input stream and releases any system resources
associated with the stream.
|
void |
FileOutputStream.close()
Closes this file output stream and releases any system resources
associated with this stream.
|
void |
FileInputStream.close()
Closes this file input stream and releases any system resources
associated with the stream.
|
void |
Closeable.close()
Closes this stream and releases any system resources associated
with it.
|
void |
ByteArrayOutputStream.close()
Closing a ByteArrayOutputStream has no effect.
|
void |
ByteArrayInputStream.close()
Closing a ByteArrayInputStream has no effect.
|
void |
BufferedWriter.close() |
void |
BufferedReader.close() |
void |
BufferedInputStream.close()
Closes this input stream and releases any system resources
associated with the stream.
|
void |
PipedOutputStream.connect(PipedInputStream snk)
Connects this piped output stream to a receiver.
|
void |
PipedInputStream.connect(PipedOutputStream src)
Causes this piped input stream to be connected
to the piped output stream
src . |
void |
PipedWriter.connect(PipedReader snk)
Connects this piped writer to a receiver.
|
void |
PipedReader.connect(PipedWriter src)
Causes this piped reader to be connected
to the piped writer
src . |
boolean |
File.createNewFile()
Atomically creates a new, empty file named by this abstract pathname if
and only if a file with this name does not yet exist.
|
static File |
File.createTempFile(String prefix,
String suffix)
Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name.
|
static File |
File.createTempFile(String prefix,
String suffix,
File directory)
Creates a new empty file in the specified directory, using the
given prefix and suffix strings to generate its name.
|
abstract boolean |
ObjectInputStream.GetField.defaulted(String name)
Return true if the named field is defaulted and has no value in this
stream.
|
void |
ObjectInputStream.defaultReadObject()
Read the non-static and non-transient fields of the current class from
this stream.
|
void |
ObjectOutputStream.defaultWriteObject()
Write the non-static and non-transient fields of the current class to
this stream.
|
abstract void |
Writer.flush()
Flushes the stream.
|
void |
PipedWriter.flush()
Flushes this output stream and forces any buffered output characters
to be written out.
|
void |
PipedOutputStream.flush()
Flushes this output stream and forces any buffered output bytes
to be written out.
|
void |
OutputStreamWriter.flush()
Flushes the stream.
|
void |
OutputStream.flush()
Flushes this output stream and forces any buffered output bytes
to be written out.
|
void |
ObjectOutputStream.flush()
Flushes the stream.
|
void |
ObjectOutput.flush()
Flushes the stream.
|
void |
Flushable.flush()
Flushes this stream by writing any buffered output to the underlying
stream.
|
void |
FilterWriter.flush()
Flushes the stream.
|
void |
FilterOutputStream.flush()
Flushes this output stream and forces any buffered output bytes
to be written out to the stream.
|
void |
DataOutputStream.flush()
Flushes this data output stream.
|
void |
BufferedWriter.flush()
Flushes the stream.
|
void |
BufferedOutputStream.flush()
Flushes this buffered output stream.
|
abstract boolean |
ObjectInputStream.GetField.get(String name,
boolean val)
Get the value of the named boolean field from the persistent field.
|
abstract byte |
ObjectInputStream.GetField.get(String name,
byte val)
Get the value of the named byte field from the persistent field.
|
abstract char |
ObjectInputStream.GetField.get(String name,
char val)
Get the value of the named char field from the persistent field.
|
abstract double |
ObjectInputStream.GetField.get(String name,
double val)
Get the value of the named double field from the persistent field.
|
abstract float |
ObjectInputStream.GetField.get(String name,
float val)
Get the value of the named float field from the persistent field.
|
abstract int |
ObjectInputStream.GetField.get(String name,
int val)
Get the value of the named int field from the persistent field.
|
abstract long |
ObjectInputStream.GetField.get(String name,
long val)
Get the value of the named long field from the persistent field.
|
abstract Object |
ObjectInputStream.GetField.get(String name,
Object val)
Get the value of the named Object field from the persistent field.
|
abstract short |
ObjectInputStream.GetField.get(String name,
short val)
Get the value of the named short field from the persistent field.
|
File |
File.getCanonicalFile()
Returns the canonical form of this abstract pathname.
|
String |
File.getCanonicalPath()
Returns the canonical pathname string of this abstract pathname.
|
FileDescriptor |
RandomAccessFile.getFD()
Returns the opaque file descriptor object associated with this
stream.
|
FileDescriptor |
FileOutputStream.getFD()
Returns the file descriptor associated with this stream.
|
FileDescriptor |
FileInputStream.getFD()
Returns the
FileDescriptor
object that represents the connection to
the actual file in the file system being
used by this FileInputStream . |
long |
RandomAccessFile.getFilePointer()
Returns the current offset in this file.
|
long |
RandomAccessFile.length()
Returns the length of this file.
|
void |
StringReader.mark(int readAheadLimit)
Marks the present position in the stream.
|
void |
Reader.mark(int readAheadLimit)
Marks the present position in the stream.
|
void |
PushbackReader.mark(int readAheadLimit)
Marks the present position in the stream.
|
void |
LineNumberReader.mark(int readAheadLimit)
Mark the present position in the stream.
|
void |
FilterReader.mark(int readAheadLimit)
Marks the present position in the stream.
|
void |
CharArrayReader.mark(int readAheadLimit)
Marks the present position in the stream.
|
void |
BufferedReader.mark(int readAheadLimit)
Marks the present position in the stream.
|
void |
BufferedWriter.newLine()
Writes a line separator.
|
int |
StreamTokenizer.nextToken()
Parses the next token from the input stream of this tokenizer.
|
ObjectOutputStream.PutField |
ObjectOutputStream.putFields()
Retrieve the object used to buffer persistent fields to be written to
the stream.
|
int |
StringReader.read()
Reads a single character.
|
int |
SequenceInputStream.read()
Reads the next byte of data from this input stream.
|
int |
Reader.read()
Reads a single character.
|
int |
RandomAccessFile.read()
Reads a byte of data from this file.
|
int |
PushbackReader.read()
Reads a single character.
|
int |
PushbackInputStream.read()
Reads the next byte of data from this input stream.
|
int |
PipedReader.read()
Reads the next character of data from this piped stream.
|
int |
PipedInputStream.read()
Reads the next byte of data from this piped input stream.
|
int |
ObjectInputStream.read()
Reads a byte of data.
|
int |
ObjectInput.read()
Reads a byte of data.
|
int |
LineNumberReader.read()
Read a single character.
|
int |
LineNumberInputStream.read()
Deprecated.
Reads the next byte of data from this input stream.
|
int |
InputStreamReader.read()
Reads a single character.
|
abstract int |
InputStream.read()
Reads the next byte of data from the input stream.
|
int |
FilterReader.read()
Reads a single character.
|
int |
FilterInputStream.read()
Reads the next byte of data from this input stream.
|
int |
FileInputStream.read()
Reads a byte of data from this input stream.
|
int |
CharArrayReader.read()
Reads a single character.
|
int |
BufferedReader.read()
Reads a single character.
|
int |
BufferedInputStream.read()
See
the general contract of the
read
method of InputStream . |
int |
RandomAccessFile.read(byte[] b)
Reads up to
b.length bytes of data from this file
into an array of bytes. |
int |
ObjectInput.read(byte[] b)
Reads into an array of bytes.
|
int |
InputStream.read(byte[] b)
Reads some number of bytes from the input stream and stores them into
the buffer array
b . |
int |
FilterInputStream.read(byte[] b)
Reads up to
byte.length bytes of data from this
input stream into an array of bytes. |
int |
FileInputStream.read(byte[] b)
Reads up to
b.length bytes of data from this input
stream into an array of bytes. |
int |
DataInputStream.read(byte[] b)
Reads some number of bytes from the contained input stream and
stores them into the buffer array
b . |
int |
SequenceInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this input stream
into an array of bytes. |
int |
RandomAccessFile.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this file into an
array of bytes. |
int |
PushbackInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this input stream into
an array of bytes. |
int |
PipedInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this piped input
stream into an array of bytes. |
int |
ObjectInputStream.read(byte[] buf,
int off,
int len)
Reads into an array of bytes.
|
int |
ObjectInput.read(byte[] b,
int off,
int len)
Reads into an array of bytes.
|
int |
LineNumberInputStream.read(byte[] b,
int off,
int len)
Deprecated.
Reads up to
len bytes of data from this input stream
into an array of bytes. |
int |
InputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from the input stream into
an array of bytes. |
int |
FilterInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this input stream
into an array of bytes. |
int |
FileInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this input stream
into an array of bytes. |
int |
DataInputStream.read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from the contained
input stream into an array of bytes. |
int |
BufferedInputStream.read(byte[] b,
int off,
int len)
Reads bytes from this byte-input stream into the specified byte array,
starting at the given offset.
|
int |
Reader.read(char[] cbuf)
Reads characters into an array.
|
int |
StringReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
abstract int |
Reader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
int |
PushbackReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
int |
PipedReader.read(char[] cbuf,
int off,
int len)
Reads up to
len characters of data from this piped
stream into an array of characters. |
int |
LineNumberReader.read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array.
|
int |
InputStreamReader.read(char[] cbuf,
int offset,
int length)
Reads characters into a portion of an array.
|
int |
FilterReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
int |
CharArrayReader.read(char[] b,
int off,
int len)
Reads characters into a portion of an array.
|
int |
BufferedReader.read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
int |
Reader.read(java.nio.CharBuffer target)
Attempts to read characters into the specified character buffer.
|
boolean |
RandomAccessFile.readBoolean()
Reads a
boolean from this file. |
boolean |
ObjectInputStream.readBoolean()
Reads in a boolean.
|
boolean |
DataInputStream.readBoolean()
See the general contract of the
readBoolean
method of DataInput . |
boolean |
DataInput.readBoolean()
Reads one input byte and returns
true if that byte is nonzero,
false if that byte is zero. |
byte |
RandomAccessFile.readByte()
Reads a signed eight-bit value from this file.
|
byte |
ObjectInputStream.readByte()
Reads an 8 bit byte.
|
byte |
DataInputStream.readByte()
See the general contract of the
readByte
method of DataInput . |
byte |
DataInput.readByte()
Reads and returns one input byte.
|
char |
RandomAccessFile.readChar()
Reads a character from this file.
|
char |
ObjectInputStream.readChar()
Reads a 16 bit char.
|
char |
DataInputStream.readChar()
See the general contract of the
readChar
method of DataInput . |
char |
DataInput.readChar()
Reads two input bytes and returns a
char value. |
double |
RandomAccessFile.readDouble()
Reads a
double from this file. |
double |
ObjectInputStream.readDouble()
Reads a 64 bit double.
|
double |
DataInputStream.readDouble()
See the general contract of the
readDouble
method of DataInput . |
double |
DataInput.readDouble()
Reads eight input bytes and returns
a
double value. |
void |
Externalizable.readExternal(ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
ObjectInputStream.GetField |
ObjectInputStream.readFields()
Reads the persistent fields from the stream and makes them available by
name.
|
float |
RandomAccessFile.readFloat()
Reads a
float from this file. |
float |
ObjectInputStream.readFloat()
Reads a 32 bit float.
|
float |
DataInputStream.readFloat()
See the general contract of the
readFloat
method of DataInput . |
float |
DataInput.readFloat()
Reads four input bytes and returns
a
float value. |
void |
RandomAccessFile.readFully(byte[] b)
Reads
b.length bytes from this file into the byte
array, starting at the current file pointer. |
void |
ObjectInputStream.readFully(byte[] buf)
Reads bytes, blocking until all bytes are read.
|
void |
DataInputStream.readFully(byte[] b)
See the general contract of the
readFully
method of DataInput . |
void |
DataInput.readFully(byte[] b)
Reads some bytes from an input
stream and stores them into the buffer
array
b . |
void |
RandomAccessFile.readFully(byte[] b,
int off,
int len)
Reads exactly
len bytes from this file into the byte
array, starting at the current file pointer. |
void |
ObjectInputStream.readFully(byte[] buf,
int off,
int len)
Reads bytes, blocking until all bytes are read.
|
void |
DataInputStream.readFully(byte[] b,
int off,
int len)
See the general contract of the
readFully
method of DataInput . |
void |
DataInput.readFully(byte[] b,
int off,
int len)
Reads
len
bytes from
an input stream. |
int |
RandomAccessFile.readInt()
Reads a signed 32-bit integer from this file.
|
int |
ObjectInputStream.readInt()
Reads a 32 bit int.
|
int |
DataInputStream.readInt()
See the general contract of the
readInt
method of DataInput . |
int |
DataInput.readInt()
Reads four input bytes and returns an
int value. |
String |
RandomAccessFile.readLine()
Reads the next line of text from this file.
|
String |
ObjectInputStream.readLine()
Deprecated.
This method does not properly convert bytes to characters.
see DataInputStream for the details and alternatives.
|
String |
LineNumberReader.readLine()
Read a line of text.
|
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:DataInputStream d = new DataInputStream(in); BufferedReader d = new BufferedReader(new InputStreamReader(in)); |
String |
DataInput.readLine()
Reads the next line of text from the input stream.
|
String |
BufferedReader.readLine()
Reads a line of text.
|
long |
RandomAccessFile.readLong()
Reads a signed 64-bit integer from this file.
|
long |
ObjectInputStream.readLong()
Reads a 64 bit long.
|
long |
DataInputStream.readLong()
See the general contract of the
readLong
method of DataInput . |
long |
DataInput.readLong()
Reads eight input bytes and returns
a
long value. |
Object |
ObjectInputStream.readObject()
Read an object from the ObjectInputStream.
|
Object |
ObjectInput.readObject()
Read and return an object.
|
short |
RandomAccessFile.readShort()
Reads a signed 16-bit number from this file.
|
short |
ObjectInputStream.readShort()
Reads a 16 bit short.
|
short |
DataInputStream.readShort()
See the general contract of the
readShort
method of DataInput . |
short |
DataInput.readShort()
Reads two input bytes and returns
a
short value. |
Object |
ObjectInputStream.readUnshared()
Reads an "unshared" object from the ObjectInputStream.
|
int |
RandomAccessFile.readUnsignedByte()
Reads an unsigned eight-bit number from this file.
|
int |
ObjectInputStream.readUnsignedByte()
Reads an unsigned 8 bit byte.
|
int |
DataInputStream.readUnsignedByte()
See the general contract of the
readUnsignedByte
method of DataInput . |
int |
DataInput.readUnsignedByte()
Reads one input byte, zero-extends
it to type
int , and returns
the result, which is therefore in the range
0
through 255 . |
int |
RandomAccessFile.readUnsignedShort()
Reads an unsigned 16-bit number from this file.
|
int |
ObjectInputStream.readUnsignedShort()
Reads an unsigned 16 bit short.
|
int |
DataInputStream.readUnsignedShort()
See the general contract of the
readUnsignedShort
method of DataInput . |
int |
DataInput.readUnsignedShort()
Reads two input bytes and returns
an
int value in the range 0
through 65535 . |
String |
RandomAccessFile.readUTF()
Reads in a string from this file.
|
String |
ObjectInputStream.readUTF()
Reads a String in
modified UTF-8
format.
|
String |
DataInputStream.readUTF()
See the general contract of the
readUTF
method of DataInput . |
String |
DataInput.readUTF()
Reads in a string that has been encoded using a
modified UTF-8
format.
|
static String |
DataInputStream.readUTF(DataInput in)
Reads from the
stream
in a representation
of a Unicode character string encoded in
modified UTF-8 format;
this string of characters is then returned as a String . |
boolean |
StringReader.ready()
Tells whether this stream is ready to be read.
|
boolean |
Reader.ready()
Tells whether this stream is ready to be read.
|
boolean |
PushbackReader.ready()
Tells whether this stream is ready to be read.
|
boolean |
PipedReader.ready()
Tell whether this stream is ready to be read.
|
boolean |
InputStreamReader.ready()
Tells whether this stream is ready to be read.
|
boolean |
FilterReader.ready()
Tells whether this stream is ready to be read.
|
boolean |
CharArrayReader.ready()
Tells whether this stream is ready to be read.
|
boolean |
BufferedReader.ready()
Tells whether this stream is ready to be read.
|
void |
StringReader.reset()
Resets the stream to the most recent mark, or to the beginning of the
string if it has never been marked.
|
void |
Reader.reset()
Resets the stream.
|
void |
PushbackReader.reset()
Resets the stream.
|
void |
PushbackInputStream.reset()
Repositions this stream to the position at the time the
mark method was last called on this input stream. |
void |
ObjectOutputStream.reset()
Reset will disregard the state of any objects already written to the
stream.
|
void |
LineNumberReader.reset()
Reset the stream to the most recent mark.
|
void |
LineNumberInputStream.reset()
Deprecated.
Repositions this stream to the position at the time the
mark method was last called on this input stream. |
void |
InputStream.reset()
Repositions this stream to the position at the time the
mark method was last called on this input stream. |
void |
FilterReader.reset()
Resets the stream.
|
void |
FilterInputStream.reset()
Repositions this stream to the position at the time the
mark method was last called on this input stream. |
void |
CharArrayReader.reset()
Resets the stream to the most recent mark, or to the beginning if it has
never been marked.
|
void |
BufferedReader.reset()
Resets the stream to the most recent mark.
|
void |
BufferedInputStream.reset()
See the general contract of the
reset
method of InputStream . |
void |
RandomAccessFile.seek(long pos)
Sets the file-pointer offset, measured from the beginning of this
file, at which the next read or write occurs.
|
void |
RandomAccessFile.setLength(long newLength)
Sets the length of this file.
|
long |
StringReader.skip(long ns)
Skips the specified number of characters in the stream.
|
long |
Reader.skip(long n)
Skips characters.
|
long |
PushbackReader.skip(long n)
Skips characters.
|
long |
PushbackInputStream.skip(long n)
Skips over and discards
n bytes of data from this
input stream. |
long |
ObjectInput.skip(long n)
Skips n bytes of input.
|
long |
LineNumberReader.skip(long n)
Skip characters.
|
long |
LineNumberInputStream.skip(long n)
Deprecated.
Skips over and discards
n bytes of data from this
input stream. |
long |
InputStream.skip(long n)
Skips over and discards
n bytes of data from this input
stream. |
long |
FilterReader.skip(long n)
Skips characters.
|
long |
FilterInputStream.skip(long n)
Skips over and discards
n bytes of data from the
input stream. |
long |
FileInputStream.skip(long n)
Skips over and discards
n bytes of data from the
input stream. |
long |
CharArrayReader.skip(long n)
Skips characters.
|
long |
BufferedReader.skip(long n)
Skips characters.
|
long |
BufferedInputStream.skip(long n)
See the general contract of the
skip
method of InputStream . |
int |
RandomAccessFile.skipBytes(int n)
Attempts to skip over
n bytes of input discarding the
skipped bytes. |
int |
ObjectInputStream.skipBytes(int len)
Skips bytes.
|
int |
DataInputStream.skipBytes(int n)
See the general contract of the
skipBytes
method of DataInput . |
int |
DataInput.skipBytes(int n)
Makes an attempt to skip over
n bytes
of data from the input
stream, discarding the skipped bytes. |
void |
PushbackInputStream.unread(byte[] b)
Pushes back an array of bytes by copying it to the front of the
pushback buffer.
|
void |
PushbackInputStream.unread(byte[] b,
int off,
int len)
Pushes back a portion of an array of bytes by copying it to the front
of the pushback buffer.
|
void |
PushbackReader.unread(char[] cbuf)
Pushes back an array of characters by copying it to the front of the
pushback buffer.
|
void |
PushbackReader.unread(char[] cbuf,
int off,
int len)
Pushes back a portion of an array of characters by copying it to the
front of the pushback buffer.
|
void |
PushbackReader.unread(int c)
Pushes back a single character by copying it to the front of the
pushback buffer.
|
void |
PushbackInputStream.unread(int b)
Pushes back a byte by copying it to the front of the pushback buffer.
|
void |
ObjectOutputStream.useProtocolVersion(int version)
Specify stream protocol version to use when writing the stream.
|
void |
RandomAccessFile.write(byte[] b)
Writes
b.length bytes from the specified byte array
to this file, starting at the current file pointer. |
void |
OutputStream.write(byte[] b)
Writes
b.length bytes from the specified byte array
to this output stream. |
void |
ObjectOutputStream.write(byte[] buf)
Writes an array of bytes.
|
void |
ObjectOutput.write(byte[] b)
Writes an array of bytes.
|
void |
FilterOutputStream.write(byte[] b)
Writes
b.length bytes to this output stream. |
void |
FileOutputStream.write(byte[] b)
Writes
b.length bytes from the specified byte array
to this file output stream. |
void |
DataOutput.write(byte[] b)
Writes to the output stream all the bytes in array
b . |
void |
RandomAccessFile.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this file. |
void |
PipedOutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this piped output stream. |
void |
OutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this output stream. |
void |
ObjectOutputStream.write(byte[] buf,
int off,
int len)
Writes a sub array of bytes.
|
void |
ObjectOutput.write(byte[] b,
int off,
int len)
Writes a sub array of bytes.
|
void |
FilterOutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified
byte array starting at offset off to
this output stream. |
void |
FileOutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this file output stream. |
void |
DataOutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to the underlying output stream. |
void |
DataOutput.write(byte[] b,
int off,
int len)
Writes
len bytes from array
b , in order, to
the output stream. |
void |
BufferedOutputStream.write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this buffered output stream. |
void |
Writer.write(char[] cbuf)
Writes an array of characters.
|
abstract void |
Writer.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters.
|
void |
PipedWriter.write(char[] cbuf,
int off,
int len)
Writes
len characters from the specified character array
starting at offset off to this piped output stream. |
void |
OutputStreamWriter.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters.
|
void |
FilterWriter.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters.
|
void |
BufferedWriter.write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters.
|
void |
Writer.write(int c)
Writes a single character.
|
void |
RandomAccessFile.write(int b)
Writes the specified byte to this file.
|
void |
PipedWriter.write(int c)
Writes the specified
char to the piped output stream. |
void |
PipedOutputStream.write(int b)
Writes the specified
byte to the piped output stream. |
void |
OutputStreamWriter.write(int c)
Writes a single character.
|
abstract void |
OutputStream.write(int b)
Writes the specified byte to this output stream.
|
void |
ObjectOutputStream.write(int val)
Writes a byte.
|
void |
ObjectOutput.write(int b)
Writes a byte.
|
void |
FilterWriter.write(int c)
Writes a single character.
|
void |
FilterOutputStream.write(int b)
Writes the specified
byte to this output stream. |
void |
FileOutputStream.write(int b)
Writes the specified byte to this file output stream.
|
void |
DataOutputStream.write(int b)
Writes the specified byte (the low eight bits of the argument
b ) to the underlying output stream. |
void |
DataOutput.write(int b)
Writes to the output stream the eight
low-order bits of the argument
b . |
void |
BufferedWriter.write(int c)
Writes a single character.
|
void |
BufferedOutputStream.write(int b)
Writes the specified byte to this buffered output stream.
|
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. |
void |
Writer.write(String str)
Writes a string.
|
void |
Writer.write(String str,
int off,
int len)
Writes a portion of a string.
|
void |
OutputStreamWriter.write(String str,
int off,
int len)
Writes a portion of a string.
|
void |
FilterWriter.write(String str,
int off,
int len)
Writes a portion of a string.
|
void |
BufferedWriter.write(String s,
int off,
int len)
Writes a portion of a String.
|
void |
RandomAccessFile.writeBoolean(boolean v)
Writes a
boolean to the file as a one-byte value. |
void |
ObjectOutputStream.writeBoolean(boolean val)
Writes a boolean.
|
void |
DataOutputStream.writeBoolean(boolean v)
Writes a
boolean to the underlying output stream as
a 1-byte value. |
void |
DataOutput.writeBoolean(boolean v)
Writes a
boolean value to this output stream. |
void |
RandomAccessFile.writeByte(int v)
Writes a
byte to the file as a one-byte value. |
void |
ObjectOutputStream.writeByte(int val)
Writes an 8 bit byte.
|
void |
DataOutputStream.writeByte(int v)
Writes out a
byte to the underlying output stream as
a 1-byte value. |
void |
DataOutput.writeByte(int v)
Writes to the output stream the eight low-
order bits of the argument
v . |
void |
RandomAccessFile.writeBytes(String s)
Writes the string to the file as a sequence of bytes.
|
void |
ObjectOutputStream.writeBytes(String str)
Writes a String as a sequence of bytes.
|
void |
DataOutputStream.writeBytes(String s)
Writes out the string to the underlying output stream as a
sequence of bytes.
|
void |
DataOutput.writeBytes(String s)
Writes a string to the output stream.
|
void |
RandomAccessFile.writeChar(int v)
Writes a
char to the file as a two-byte value, high
byte first. |
void |
ObjectOutputStream.writeChar(int val)
Writes a 16 bit char.
|
void |
DataOutputStream.writeChar(int v)
Writes a
char to the underlying output stream as a
2-byte value, high byte first. |
void |
DataOutput.writeChar(int v)
Writes a
char value, which
is comprised of two bytes, to the
output stream. |
void |
RandomAccessFile.writeChars(String s)
Writes a string to the file as a sequence of characters.
|
void |
ObjectOutputStream.writeChars(String str)
Writes a String as a sequence of chars.
|
void |
DataOutputStream.writeChars(String s)
Writes a string to the underlying output stream as a sequence of
characters.
|
void |
DataOutput.writeChars(String s)
Writes every character in the string
s ,
to the output stream, in order,
two bytes per character. |
void |
RandomAccessFile.writeDouble(double v)
Converts the double argument to a
long using the
doubleToLongBits method in class Double ,
and then writes that long value to the file as an
eight-byte quantity, high byte first. |
void |
ObjectOutputStream.writeDouble(double val)
Writes a 64 bit double.
|
void |
DataOutputStream.writeDouble(double v)
Converts the double argument to a
long using the
doubleToLongBits method in class Double ,
and then writes that long value to the underlying
output stream as an 8-byte quantity, high byte first. |
void |
DataOutput.writeDouble(double v)
Writes a
double value,
which is comprised of eight bytes, to the output stream. |
void |
Externalizable.writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
void |
ObjectOutputStream.writeFields()
Write the buffered fields to the stream.
|
void |
RandomAccessFile.writeFloat(float v)
Converts the float argument to an
int using the
floatToIntBits method in class Float ,
and then writes that int value to the file as a
four-byte quantity, high byte first. |
void |
ObjectOutputStream.writeFloat(float val)
Writes a 32 bit float.
|
void |
DataOutputStream.writeFloat(float v)
Converts the float argument to an
int using the
floatToIntBits method in class Float ,
and then writes that int value to the underlying
output stream as a 4-byte quantity, high byte first. |
void |
DataOutput.writeFloat(float v)
Writes a
float value,
which is comprised of four bytes, to the output stream. |
void |
RandomAccessFile.writeInt(int v)
Writes an
int to the file as four bytes, high byte first. |
void |
ObjectOutputStream.writeInt(int val)
Writes a 32 bit int.
|
void |
DataOutputStream.writeInt(int v)
Writes an
int to the underlying output stream as four
bytes, high byte first. |
void |
DataOutput.writeInt(int v)
Writes an
int value, which is
comprised of four bytes, to the output stream. |
void |
RandomAccessFile.writeLong(long v)
Writes a
long to the file as eight bytes, high byte first. |
void |
ObjectOutputStream.writeLong(long val)
Writes a 64 bit long.
|
void |
DataOutputStream.writeLong(long v)
Writes a
long to the underlying output stream as eight
bytes, high byte first. |
void |
DataOutput.writeLong(long v)
Writes a
long value, which is
comprised of eight bytes, to the output stream. |
void |
ObjectOutputStream.writeObject(Object obj)
Write the specified object to the ObjectOutputStream.
|
void |
ObjectOutput.writeObject(Object obj)
Write an object to the underlying storage or stream.
|
void |
RandomAccessFile.writeShort(int v)
Writes a
short to the file as two bytes, high byte first. |
void |
ObjectOutputStream.writeShort(int val)
Writes a 16 bit short.
|
void |
DataOutputStream.writeShort(int v)
Writes a
short to the underlying output stream as two
bytes, high byte first. |
void |
DataOutput.writeShort(int v)
Writes two bytes to the output
stream to represent the value of the argument.
|
void |
ByteArrayOutputStream.writeTo(OutputStream out)
Writes the complete contents of this byte array output stream to
the specified output stream argument, as if by calling the output
stream's write method using
out.write(buf, 0, count) . |
void |
CharArrayWriter.writeTo(Writer out)
Writes the contents of the buffer to another character stream.
|
void |
ObjectOutputStream.writeUnshared(Object obj)
Writes an "unshared" object to the ObjectOutputStream.
|
void |
RandomAccessFile.writeUTF(String str)
Writes a string to the file using
modified UTF-8
encoding in a machine-independent manner.
|
void |
ObjectOutputStream.writeUTF(String str)
Primitive data write of this String in
modified UTF-8
format.
|
void |
DataOutputStream.writeUTF(String str)
Writes a string to the underlying output stream using
modified UTF-8
encoding in a machine-independent manner.
|
void |
DataOutput.writeUTF(String s)
Writes two bytes of length information
to the output stream, followed
by the
modified UTF-8
representation
of every character in the string
s . |
Constructor and Description |
---|
FileWriter(File file)
Constructs a FileWriter object given a File object.
|
FileWriter(File file,
boolean append)
Constructs a FileWriter object given a File object.
|
FileWriter(String fileName)
Constructs a FileWriter object given a file name.
|
FileWriter(String fileName,
boolean append)
Constructs a FileWriter object given a file name with a boolean
indicating whether or not to append the data written.
|
ObjectInputStream(InputStream in)
Creates an ObjectInputStream that reads from the specified InputStream.
|
ObjectOutputStream(OutputStream out)
Creates an ObjectOutputStream that writes to the specified OutputStream.
|
PipedInputStream(PipedOutputStream src)
Creates a
PipedInputStream so
that it is connected to the piped output
stream src . |
PipedInputStream(PipedOutputStream src,
int pipeSize)
Creates a
PipedInputStream so that it is
connected to the piped output stream
src and uses the specified pipe size for
the pipe's buffer. |
PipedOutputStream(PipedInputStream snk)
Creates a piped output stream connected to the specified piped
input stream.
|
PipedReader(PipedWriter src)
Creates a
PipedReader so
that it is connected to the piped writer
src . |
PipedReader(PipedWriter src,
int pipeSize)
Creates a
PipedReader so that it is connected
to the piped writer src and uses the specified
pipe size for the pipe's buffer. |
PipedWriter(PipedReader snk)
Creates a piped writer connected to the specified piped
reader.
|
Modifier and Type | Method and Description |
---|---|
Appendable |
Appendable.append(char c)
Appends the specified character to this Appendable.
|
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this
Appendable.
|
Process |
Runtime.exec(String command)
Executes the specified string command in a separate process.
|
Process |
Runtime.exec(String[] cmdarray)
Executes the specified command and arguments in a separate process.
|
Process |
Runtime.exec(String[] cmdarray,
String[] envp)
Executes the specified command and arguments in a separate process
with the specified environment.
|
Process |
Runtime.exec(String[] cmdarray,
String[] envp,
File dir)
Executes the specified command and arguments in a separate process with
the specified environment and working directory.
|
Process |
Runtime.exec(String command,
String[] envp)
Executes the specified string command in a separate process with the
specified environment.
|
Process |
Runtime.exec(String command,
String[] envp,
File dir)
Executes the specified string command in a separate process with the
specified environment and working directory.
|
java.util.Enumeration<java.net.URL> |
ClassLoader.getResources(String name)
Finds all the resources with the given name.
|
static java.util.Enumeration<java.net.URL> |
ClassLoader.getSystemResources(String name)
Finds all resources of the specified name from the search path used to
load classes.
|
static java.nio.channels.Channel |
System.inheritedChannel()
Returns the channel inherited from the entity that created this
Java virtual machine.
|
int |
Readable.read(java.nio.CharBuffer cb)
Attempts to read characters into the specified character buffer.
|
Process |
ProcessBuilder.start()
Starts a new process using the attributes of this process builder.
|