Commit 93b3986a by Michael Koch Committed by Michael Koch

BufferedOutputStream.java: Reformated.

2003-03-23  Michael Koch  <konqueror@gmx.de>

	* java/io/BufferedOutputStream.java:
	Reformated.
	* java/io/BufferedReader.java:
	Reformated.
	* java/io/ByteArrayOutputStream.java
	(size): Fixed @see tag.
	* java/io/CharArrayWriter.java
	(size): Fixed @see tag.
	* java/io/DataInput.java:
	Reformated.
	* java/io/DataOutput.java:
	Reformated.
	* java/io/DataOutputStream.java:
	Merged copyright years with classpath.
	* java/io/Externalizable.java:
	Reformated.
	* java/io/FileFilter.java:
	Reformated.
	* java/io/FileInputStream.java:
	Merged copyright years with classpath.
	* java/io/FileOutputStream.java:
	Merged copyright years with classpath.
	* java/io/FilePermission.java
	(FilePermission): Replaced @XXX with FIXME:.
	* java/io/FileWriter.java:
	Reformated.
	* java/io/FilenameFilter.java:
	Reformated.
	* java/io/FilterInputStream.java:
	Reformated.
	* java/io/FilterOutputStream.java:
	Reformated.
	* java/io/FilterReader.java:
	Reformated.
	* java/io/FilterWriter.java:
	Reformated.
	* java/io/LineNumberInputStream.java
	(LineNumberInputStream): Replaced @code with HTML tags to make javadoc
	happy.
	(getLineNumber): Fixed @return tag.
	* java/io/ObjectInput.java:
	Reformated.
	* java/io/ObjectOutput.java:
	Reformated.
	* java/io/ObjectStreamClass.java:
	Reformated.
	* java/io/PrintStream.java:
	Merged copyright years with classpath.
	* java/io/PushbackReader.java
	(PushbackReader): Replaced @code with @param.
	* java/io/SerializablePermission.java:
	Reformated.
	* java/io/StreamTokenizer.java
	(resetSyntax): Fixed @see tag.

From-SVN: r64748
parent 4d1da12a
2003-03-23 Michael Koch <konqueror@gmx.de>
* java/io/BufferedOutputStream.java:
Reformated.
* java/io/BufferedReader.java:
Reformated.
* java/io/ByteArrayOutputStream.java
(size): Fixed @see tag.
* java/io/CharArrayWriter.java
(size): Fixed @see tag.
* java/io/DataInput.java:
Reformated.
* java/io/DataOutput.java:
Reformated.
* java/io/DataOutputStream.java:
Merged copyright years with classpath.
* java/io/Externalizable.java:
Reformated.
* java/io/FileFilter.java:
Reformated.
* java/io/FileInputStream.java:
Merged copyright years with classpath.
* java/io/FileOutputStream.java:
Merged copyright years with classpath.
* java/io/FilePermission.java
(FilePermission): Replaced @XXX with FIXME:.
* java/io/FileWriter.java:
Reformated.
* java/io/FilenameFilter.java:
Reformated.
* java/io/FilterInputStream.java:
Reformated.
* java/io/FilterOutputStream.java:
Reformated.
* java/io/FilterReader.java:
Reformated.
* java/io/FilterWriter.java:
Reformated.
* java/io/LineNumberInputStream.java
(LineNumberInputStream): Replaced @code with HTML tags to make javadoc
happy.
(getLineNumber): Fixed @return tag.
* java/io/ObjectInput.java:
Reformated.
* java/io/ObjectOutput.java:
Reformated.
* java/io/ObjectStreamClass.java:
Reformated.
* java/io/PrintStream.java:
Merged copyright years with classpath.
* java/io/PushbackReader.java
(PushbackReader): Replaced @code with @param.
* java/io/SerializablePermission.java:
Reformated.
* java/io/StreamTokenizer.java
(resetSyntax): Fixed @see tag.
2003-03-22 Richard Henderson <rth@redhat.com> 2003-03-22 Richard Henderson <rth@redhat.com>
* sysdep/ia64/locks.h: Include ia64intrin.h. * sysdep/ia64/locks.h: Include ia64intrin.h.
......
...@@ -50,21 +50,11 @@ package java.io; ...@@ -50,21 +50,11 @@ package java.io;
*/ */
public class BufferedOutputStream extends FilterOutputStream public class BufferedOutputStream extends FilterOutputStream
{ {
/*
* Class Variables
*/
/** /**
* This is the default buffer size * This is the default buffer size
*/ */
private static final int DEFAULT_BUFFER_SIZE = 512; private static final int DEFAULT_BUFFER_SIZE = 512;
/*************************************************************************/
/*
* Instance Variables
*/
/** /**
* This is the internal byte array used for buffering output before * This is the internal byte array used for buffering output before
* writing it. * writing it.
...@@ -78,12 +68,6 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -78,12 +68,6 @@ public class BufferedOutputStream extends FilterOutputStream
*/ */
protected int count; protected int count;
/*************************************************************************/
/*
* Constructors
*/
/** /**
* This method initializes a new <code>BufferedOutputStream</code> instance * This method initializes a new <code>BufferedOutputStream</code> instance
* that will write to the specified subordinate <code>OutputStream</code> * that will write to the specified subordinate <code>OutputStream</code>
...@@ -96,8 +80,6 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -96,8 +80,6 @@ public class BufferedOutputStream extends FilterOutputStream
this(out, DEFAULT_BUFFER_SIZE); this(out, DEFAULT_BUFFER_SIZE);
} }
/*************************************************************************/
/** /**
* This method initializes a new <code>BufferedOutputStream</code> instance * This method initializes a new <code>BufferedOutputStream</code> instance
* that will write to the specified subordinate <code>OutputStream</code> * that will write to the specified subordinate <code>OutputStream</code>
...@@ -113,12 +95,6 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -113,12 +95,6 @@ public class BufferedOutputStream extends FilterOutputStream
buf = new byte[size]; buf = new byte[size];
} }
/*************************************************************************/
/*
* Instance Methods
*/
/** /**
* This method causes any currently buffered bytes to be immediately * This method causes any currently buffered bytes to be immediately
* written to the underlying output stream. * written to the underlying output stream.
...@@ -135,9 +111,7 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -135,9 +111,7 @@ public class BufferedOutputStream extends FilterOutputStream
out.flush(); out.flush();
} }
/*************************************************************************/ /**
/*
* This method flushes any remaining buffered bytes then closes the * This method flushes any remaining buffered bytes then closes the
* underlying output stream. Any further attempts to write to this stream * underlying output stream. Any further attempts to write to this stream
* may throw an exception * may throw an exception
...@@ -149,9 +123,7 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -149,9 +123,7 @@ public class BufferedOutputStream extends FilterOutputStream
} }
*/ */
/*************************************************************************/ /**
/*
* This method runs when the object is garbage collected. It is * This method runs when the object is garbage collected. It is
* responsible for ensuring that all buffered bytes are written and * responsible for ensuring that all buffered bytes are written and
* for closing the underlying stream. * for closing the underlying stream.
...@@ -164,8 +136,6 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -164,8 +136,6 @@ public class BufferedOutputStream extends FilterOutputStream
} }
*/ */
/*************************************************************************/
/** /**
* This method writes a single byte of data. This will be written to the * This method writes a single byte of data. This will be written to the
* buffer instead of the underlying data source. However, if the buffer * buffer instead of the underlying data source. However, if the buffer
...@@ -185,8 +155,6 @@ public class BufferedOutputStream extends FilterOutputStream ...@@ -185,8 +155,6 @@ public class BufferedOutputStream extends FilterOutputStream
++count; ++count;
} }
/*************************************************************************/
/** /**
* This method writes <code>len</code> bytes from the byte array * This method writes <code>len</code> bytes from the byte array
* <code>buf</code> starting at position <code>offset</code> in the buffer. * <code>buf</code> starting at position <code>offset</code> in the buffer.
......
...@@ -118,7 +118,7 @@ public class ByteArrayOutputStream extends OutputStream ...@@ -118,7 +118,7 @@ public class ByteArrayOutputStream extends OutputStream
* *
* @return The number of bytes in the internal buffer * @return The number of bytes in the internal buffer
* *
* @see reset * @see #reset()
*/ */
public int size () public int size ()
{ {
......
...@@ -130,7 +130,7 @@ public class CharArrayWriter extends Writer ...@@ -130,7 +130,7 @@ public class CharArrayWriter extends Writer
* *
* @return The number of chars in the internal buffer * @return The number of chars in the internal buffer
* *
* @see reset * @see #reset()
*/ */
public int size () public int size ()
{ {
......
...@@ -71,8 +71,6 @@ public interface DataInput ...@@ -71,8 +71,6 @@ public interface DataInput
*/ */
boolean readBoolean() throws EOFException, IOException; boolean readBoolean() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a Java byte value from an input stream. The value * This method reads a Java byte value from an input stream. The value
* is in the range of -128 to 127. * is in the range of -128 to 127.
...@@ -90,8 +88,6 @@ public interface DataInput ...@@ -90,8 +88,6 @@ public interface DataInput
*/ */
byte readByte() throws EOFException, IOException; byte readByte() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads 8 unsigned bits into a Java <code>int</code> value from * This method reads 8 unsigned bits into a Java <code>int</code> value from
* the stream. The value returned is in the range of 0 to 255. * the stream. The value returned is in the range of 0 to 255.
...@@ -110,8 +106,6 @@ public interface DataInput ...@@ -110,8 +106,6 @@ public interface DataInput
*/ */
int readUnsignedByte() throws EOFException, IOException; int readUnsignedByte() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a Java <code>char</code> value from an input stream. * This method reads a Java <code>char</code> value from an input stream.
* It operates by reading two bytes from the stream and converting them to * It operates by reading two bytes from the stream and converting them to
...@@ -138,8 +132,6 @@ public interface DataInput ...@@ -138,8 +132,6 @@ public interface DataInput
*/ */
char readChar() throws EOFException, IOException; char readChar() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a signed 16-bit value into a Java in from the stream. * This method reads a signed 16-bit value into a Java in from the stream.
* It operates by reading two bytes from the stream and converting them to * It operates by reading two bytes from the stream and converting them to
...@@ -169,8 +161,6 @@ public interface DataInput ...@@ -169,8 +161,6 @@ public interface DataInput
*/ */
short readShort() throws EOFException, IOException; short readShort() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads 16 unsigned bits into a Java int value from the stream. * This method reads 16 unsigned bits into a Java int value from the stream.
* It operates by reading two bytes from the stream and converting them to * It operates by reading two bytes from the stream and converting them to
...@@ -199,8 +189,6 @@ public interface DataInput ...@@ -199,8 +189,6 @@ public interface DataInput
*/ */
int readUnsignedShort() throws EOFException, IOException; int readUnsignedShort() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a Java <code>int</code> value from an input stream * This method reads a Java <code>int</code> value from an input stream
* It operates by reading four bytes from the stream and converting them to * It operates by reading four bytes from the stream and converting them to
...@@ -229,8 +217,6 @@ public interface DataInput ...@@ -229,8 +217,6 @@ public interface DataInput
*/ */
int readInt() throws EOFException, IOException; int readInt() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a Java <code>long</code> value from an input stream * This method reads a Java <code>long</code> value from an input stream
* It operates by reading eight bytes from the stream and converting them to * It operates by reading eight bytes from the stream and converting them to
...@@ -262,8 +248,6 @@ public interface DataInput ...@@ -262,8 +248,6 @@ public interface DataInput
*/ */
long readLong() throws EOFException, IOException; long readLong() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a Java float value from an input stream. It operates * This method reads a Java float value from an input stream. It operates
* by first reading an <code>int</code> value from the stream by calling the * by first reading an <code>int</code> value from the stream by calling the
...@@ -288,8 +272,6 @@ public interface DataInput ...@@ -288,8 +272,6 @@ public interface DataInput
*/ */
float readFloat() throws EOFException, IOException; float readFloat() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads a Java double value from an input stream. It operates * This method reads a Java double value from an input stream. It operates
* by first reading a <code>long</code> value from the stream by calling the * by first reading a <code>long</code> value from the stream by calling the
...@@ -313,8 +295,6 @@ public interface DataInput ...@@ -313,8 +295,6 @@ public interface DataInput
*/ */
double readDouble() throws EOFException, IOException; double readDouble() throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads the next line of text data from an input stream. * This method reads the next line of text data from an input stream.
* It operates by reading bytes and converting those bytes to * It operates by reading bytes and converting those bytes to
...@@ -341,8 +321,6 @@ public interface DataInput ...@@ -341,8 +321,6 @@ public interface DataInput
*/ */
String readLine() throws IOException; String readLine() throws IOException;
/*************************************************************************/
/** /**
* This method reads a <code>String</code> from an input stream that is * This method reads a <code>String</code> from an input stream that is
* encoded in a modified UTF-8 format. This format has a leading two byte * encoded in a modified UTF-8 format. This format has a leading two byte
...@@ -416,8 +394,6 @@ public interface DataInput ...@@ -416,8 +394,6 @@ public interface DataInput
*/ */
String readUTF() throws EOFException, UTFDataFormatException, IOException; String readUTF() throws EOFException, UTFDataFormatException, IOException;
/*************************************************************************/
/** /**
* This method reads raw bytes into the passed array until the array is * This method reads raw bytes into the passed array until the array is
* full. Note that this method blocks until the data is available and * full. Note that this method blocks until the data is available and
...@@ -432,8 +408,6 @@ public interface DataInput ...@@ -432,8 +408,6 @@ public interface DataInput
*/ */
void readFully(byte[] buf) throws EOFException, IOException; void readFully(byte[] buf) throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method reads raw bytes into the passed array <code>buf</code> * This method reads raw bytes into the passed array <code>buf</code>
* starting * starting
...@@ -454,8 +428,6 @@ public interface DataInput ...@@ -454,8 +428,6 @@ public interface DataInput
void readFully(byte[] buf, int offset, int len) void readFully(byte[] buf, int offset, int len)
throws EOFException, IOException; throws EOFException, IOException;
/*************************************************************************/
/** /**
* This method skips and discards the specified number of bytes in an * This method skips and discards the specified number of bytes in an
* input stream * input stream
......
...@@ -62,8 +62,6 @@ public interface DataOutput ...@@ -62,8 +62,6 @@ public interface DataOutput
*/ */
void writeBoolean(boolean value) throws IOException; void writeBoolean(boolean value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java byte value to an output stream * This method writes a Java byte value to an output stream
* *
...@@ -73,8 +71,6 @@ public interface DataOutput ...@@ -73,8 +71,6 @@ public interface DataOutput
*/ */
void writeByte(int value) throws IOException; void writeByte(int value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java char value to an output stream * This method writes a Java char value to an output stream
* *
...@@ -84,8 +80,6 @@ public interface DataOutput ...@@ -84,8 +80,6 @@ public interface DataOutput
*/ */
void writeChar(int value) throws IOException; void writeChar(int value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java int value to an output stream as a 16 bit value * This method writes a Java int value to an output stream as a 16 bit value
* *
...@@ -95,8 +89,6 @@ public interface DataOutput ...@@ -95,8 +89,6 @@ public interface DataOutput
*/ */
void writeShort(int value) throws IOException; void writeShort(int value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java int value to an output stream * This method writes a Java int value to an output stream
* *
...@@ -106,8 +98,6 @@ public interface DataOutput ...@@ -106,8 +98,6 @@ public interface DataOutput
*/ */
void writeInt(int value) throws IOException; void writeInt(int value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java long value to an output stream * This method writes a Java long value to an output stream
* *
...@@ -117,8 +107,6 @@ public interface DataOutput ...@@ -117,8 +107,6 @@ public interface DataOutput
*/ */
void writeLong(long value) throws IOException; void writeLong(long value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java float value to an output stream * This method writes a Java float value to an output stream
* *
...@@ -128,8 +116,6 @@ public interface DataOutput ...@@ -128,8 +116,6 @@ public interface DataOutput
*/ */
void writeFloat(float value) throws IOException; void writeFloat(float value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a Java double value to an output stream * This method writes a Java double value to an output stream
* *
...@@ -139,8 +125,6 @@ public interface DataOutput ...@@ -139,8 +125,6 @@ public interface DataOutput
*/ */
void writeDouble(double value) throws IOException; void writeDouble(double value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a String to an output stream as an array of bytes * This method writes a String to an output stream as an array of bytes
* *
...@@ -150,8 +134,6 @@ public interface DataOutput ...@@ -150,8 +134,6 @@ public interface DataOutput
*/ */
void writeBytes(String value) throws IOException; void writeBytes(String value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a String to an output stream as an array of char's * This method writes a String to an output stream as an array of char's
* *
...@@ -161,8 +143,6 @@ public interface DataOutput ...@@ -161,8 +143,6 @@ public interface DataOutput
*/ */
void writeChars(String value) throws IOException; void writeChars(String value) throws IOException;
/*************************************************************************/
/** /**
* This method writes a String to an output stream encoded in * This method writes a String to an output stream encoded in
* UTF-8 format. * UTF-8 format.
...@@ -173,8 +153,6 @@ public interface DataOutput ...@@ -173,8 +153,6 @@ public interface DataOutput
*/ */
void writeUTF(String value) throws IOException; void writeUTF(String value) throws IOException;
/*************************************************************************/
/** /**
* This method writes an 8-bit value (passed into the method as a Java * This method writes an 8-bit value (passed into the method as a Java
* int) to an output stream. * int) to an output stream.
...@@ -185,8 +163,6 @@ public interface DataOutput ...@@ -185,8 +163,6 @@ public interface DataOutput
*/ */
void write(int value) throws IOException; void write(int value) throws IOException;
/*************************************************************************/
/** /**
* This method writes the raw byte array passed in to the output stream. * This method writes the raw byte array passed in to the output stream.
* *
...@@ -196,8 +172,6 @@ public interface DataOutput ...@@ -196,8 +172,6 @@ public interface DataOutput
*/ */
void write(byte[] buf) throws IOException; void write(byte[] buf) throws IOException;
/*************************************************************************/
/** /**
* This method writes raw bytes from the passed array <code>buf</code> * This method writes raw bytes from the passed array <code>buf</code>
* starting * starting
......
/* DataOutputStream.java -- Writes primitive Java datatypes to streams /* DataOutputStream.java -- Writes primitive Java datatypes to streams
Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc. Copyright (C) 1998, 2001, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
......
...@@ -89,8 +89,6 @@ public interface Externalizable extends Serializable ...@@ -89,8 +89,6 @@ public interface Externalizable extends Serializable
public abstract void readExternal(ObjectInput in) public abstract void readExternal(ObjectInput in)
throws ClassNotFoundException, IOException; throws ClassNotFoundException, IOException;
/*************************************************************************/
/** /**
* This method is responsible for writing the instance data of an object * This method is responsible for writing the instance data of an object
* to the passed in stream. Note that this stream is not a subclass of * to the passed in stream. Note that this stream is not a subclass of
......
/* FileInputStream.java -- An input stream that reads from disk files. /* FileInputStream.java -- An input stream that reads from disk files.
Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. Copyright (C) 1998, 2002, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
......
/* FileOutputStream.java -- Writes to a file on disk. /* FileOutputStream.java -- Writes to a file on disk.
Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc. Copyright (C) 1998, 2001, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
......
...@@ -93,7 +93,7 @@ public final class FilePermission extends Permission implements Serializable ...@@ -93,7 +93,7 @@ public final class FilePermission extends Permission implements Serializable
** permission represents. ** permission represents.
** @param actionsString a comma-separated list of the actions this ** @param actionsString a comma-separated list of the actions this
** permission represents. ** permission represents.
** @XXX what to do when the file string is malformed? ** FIXME: what to do when the file string is malformed?
**/ **/
public FilePermission(String pathExpression, String actionsString) public FilePermission(String pathExpression, String actionsString)
{ {
......
...@@ -54,8 +54,6 @@ package java.io; ...@@ -54,8 +54,6 @@ package java.io;
public class FileWriter extends OutputStreamWriter public class FileWriter extends OutputStreamWriter
{ {
/*************************************************************************/
/* /*
* Constructors * Constructors
*/ */
...@@ -75,8 +73,6 @@ public class FileWriter extends OutputStreamWriter ...@@ -75,8 +73,6 @@ public class FileWriter extends OutputStreamWriter
super(new FileOutputStream(file)); super(new FileOutputStream(file));
} }
/*************************************************************************/
/** /**
* This method initializes a new <code>FileWriter</code> object to write * This method initializes a new <code>FileWriter</code> object to write
* to the specified <code>File</code> object. * to the specified <code>File</code> object.
...@@ -94,8 +90,6 @@ public class FileWriter extends OutputStreamWriter ...@@ -94,8 +90,6 @@ public class FileWriter extends OutputStreamWriter
super(new FileOutputStream(file, append)); super(new FileOutputStream(file, append));
} }
/*************************************************************************/
/** /**
* This method initializes a new <code>FileWriter</code> object to write * This method initializes a new <code>FileWriter</code> object to write
* to the specified <code>FileDescriptor</code> object. * to the specified <code>FileDescriptor</code> object.
...@@ -110,8 +104,6 @@ public class FileWriter extends OutputStreamWriter ...@@ -110,8 +104,6 @@ public class FileWriter extends OutputStreamWriter
super(new FileOutputStream(fd)); super(new FileOutputStream(fd));
} }
/*************************************************************************/
/** /**
* This method intializes a new <code>FileWriter</code> object to * This method intializes a new <code>FileWriter</code> object to
* write to the * write to the
...@@ -128,8 +120,6 @@ public class FileWriter extends OutputStreamWriter ...@@ -128,8 +120,6 @@ public class FileWriter extends OutputStreamWriter
super(new FileOutputStream(name)); super(new FileOutputStream(name));
} }
/*************************************************************************/
/** /**
* This method intializes a new <code>FileWriter</code> object to * This method intializes a new <code>FileWriter</code> object to
* write to the * write to the
......
...@@ -69,25 +69,12 @@ package java.io; ...@@ -69,25 +69,12 @@ package java.io;
*/ */
public class FilterInputStream extends InputStream public class FilterInputStream extends InputStream
{ {
/*************************************************************************/
/*
* Instance Variables
*/
/** /**
* This is the subordinate <code>InputStream</code> to which method calls * This is the subordinate <code>InputStream</code> to which method calls
* are redirected * are redirected
*/ */
protected InputStream in; protected InputStream in;
/*************************************************************************/
/*
* Constructors
*/
/** /**
* Create a <code>FilterInputStream</code> with the specified subordinate * Create a <code>FilterInputStream</code> with the specified subordinate
* <code>InputStream</code>. * <code>InputStream</code>.
...@@ -99,12 +86,6 @@ public class FilterInputStream extends InputStream ...@@ -99,12 +86,6 @@ public class FilterInputStream extends InputStream
this.in = in; this.in = in;
} }
/*************************************************************************/
/*
* Instance Methods
*/
/** /**
* Calls the <code>in.mark(int)</code> method. * Calls the <code>in.mark(int)</code> method.
* *
...@@ -115,8 +96,6 @@ public class FilterInputStream extends InputStream ...@@ -115,8 +96,6 @@ public class FilterInputStream extends InputStream
in.mark(readlimit); in.mark(readlimit);
} }
/*************************************************************************/
/** /**
* Calls the <code>in.markSupported()</code> method. * Calls the <code>in.markSupported()</code> method.
* *
...@@ -128,8 +107,6 @@ public class FilterInputStream extends InputStream ...@@ -128,8 +107,6 @@ public class FilterInputStream extends InputStream
return(in.markSupported()); return(in.markSupported());
} }
/*************************************************************************/
/** /**
* Calls the <code>in.reset()</code> method. * Calls the <code>in.reset()</code> method.
* *
...@@ -140,8 +117,6 @@ public class FilterInputStream extends InputStream ...@@ -140,8 +117,6 @@ public class FilterInputStream extends InputStream
in.reset(); in.reset();
} }
/*************************************************************************/
/** /**
* Calls the <code>in.available()</code> method. * Calls the <code>in.available()</code> method.
* *
...@@ -154,8 +129,6 @@ public class FilterInputStream extends InputStream ...@@ -154,8 +129,6 @@ public class FilterInputStream extends InputStream
return(in.available()); return(in.available());
} }
/*************************************************************************/
/** /**
* Calls the <code>in.skip(long)</code> method * Calls the <code>in.skip(long)</code> method
* *
...@@ -170,8 +143,6 @@ public class FilterInputStream extends InputStream ...@@ -170,8 +143,6 @@ public class FilterInputStream extends InputStream
return(in.skip(num_bytes)); return(in.skip(num_bytes));
} }
/*************************************************************************/
/** /**
* Calls the <code>in.read()</code> method * Calls the <code>in.read()</code> method
* *
...@@ -184,8 +155,6 @@ public class FilterInputStream extends InputStream ...@@ -184,8 +155,6 @@ public class FilterInputStream extends InputStream
return(in.read()); return(in.read());
} }
/*************************************************************************/
/** /**
* Calls the <code>read(byte[], int, int)</code> overloaded method. * Calls the <code>read(byte[], int, int)</code> overloaded method.
* Note that * Note that
...@@ -204,8 +173,6 @@ public class FilterInputStream extends InputStream ...@@ -204,8 +173,6 @@ public class FilterInputStream extends InputStream
return(read(buf, 0, buf.length)); return(read(buf, 0, buf.length));
} }
/*************************************************************************/
/** /**
* Calls the <code>in.read(byte[], int, int)</code> method. * Calls the <code>in.read(byte[], int, int)</code> method.
* *
...@@ -222,8 +189,6 @@ public class FilterInputStream extends InputStream ...@@ -222,8 +189,6 @@ public class FilterInputStream extends InputStream
return(in.read(buf, offset, len)); return(in.read(buf, offset, len));
} }
/*************************************************************************/
/** /**
* This method closes the input stream by closing the input stream that * This method closes the input stream by closing the input stream that
* this object is filtering. Future attempts to access this stream may * this object is filtering. Future attempts to access this stream may
......
...@@ -56,25 +56,12 @@ package java.io; ...@@ -56,25 +56,12 @@ package java.io;
*/ */
public class FilterOutputStream extends OutputStream public class FilterOutputStream extends OutputStream
{ {
/*************************************************************************/
/*
* Instance Variables
*/
/** /**
* This is the subordinate <code>OutputStream</code> that this class * This is the subordinate <code>OutputStream</code> that this class
* redirects its method calls to. * redirects its method calls to.
*/ */
protected OutputStream out; protected OutputStream out;
/*************************************************************************/
/*
* Constructors
*/
/** /**
* This method initializes an instance of <code>FilterOutputStream</code> * This method initializes an instance of <code>FilterOutputStream</code>
* to write to the specified subordinate <code>OutputStream</code>. * to write to the specified subordinate <code>OutputStream</code>.
...@@ -86,12 +73,6 @@ public class FilterOutputStream extends OutputStream ...@@ -86,12 +73,6 @@ public class FilterOutputStream extends OutputStream
this.out = out; this.out = out;
} }
/*************************************************************************/
/*
* Instance Methods
*/
/** /**
* This method closes the underlying <code>OutputStream</code>. Any * This method closes the underlying <code>OutputStream</code>. Any
* further attempts to write to this stream may throw an exception. * further attempts to write to this stream may throw an exception.
...@@ -104,8 +85,6 @@ public class FilterOutputStream extends OutputStream ...@@ -104,8 +85,6 @@ public class FilterOutputStream extends OutputStream
out.close(); out.close();
} }
/*************************************************************************/
/** /**
* This method attempt to flush all buffered output to be written to the * This method attempt to flush all buffered output to be written to the
* underlying output sink. * underlying output sink.
...@@ -117,8 +96,6 @@ public class FilterOutputStream extends OutputStream ...@@ -117,8 +96,6 @@ public class FilterOutputStream extends OutputStream
out.flush(); out.flush();
} }
/*************************************************************************/
/** /**
* This method writes a single byte of output to the underlying * This method writes a single byte of output to the underlying
* <code>OutputStream</code>. * <code>OutputStream</code>.
...@@ -132,8 +109,6 @@ public class FilterOutputStream extends OutputStream ...@@ -132,8 +109,6 @@ public class FilterOutputStream extends OutputStream
out.write(b); out.write(b);
} }
/*************************************************************************/
/** /**
* This method writes all the bytes in the specified array to the underlying * This method writes all the bytes in the specified array to the underlying
* <code>OutputStream</code>. It does this by calling the three parameter * <code>OutputStream</code>. It does this by calling the three parameter
...@@ -151,8 +126,6 @@ public class FilterOutputStream extends OutputStream ...@@ -151,8 +126,6 @@ public class FilterOutputStream extends OutputStream
write(buf, 0, buf.length); write(buf, 0, buf.length);
} }
/*************************************************************************/
/** /**
* This method calls the <code>write(int)</code> method <code>len</code> * This method calls the <code>write(int)</code> method <code>len</code>
* times for all bytes from the array <code>buf</code> starting at index * times for all bytes from the array <code>buf</code> starting at index
......
...@@ -63,22 +63,12 @@ package java.io; ...@@ -63,22 +63,12 @@ package java.io;
*/ */
public abstract class FilterReader extends Reader public abstract class FilterReader extends Reader
{ {
/*
* Instance Variables
*/
/** /**
* This is the subordinate <code>Reader</code> to which method calls * This is the subordinate <code>Reader</code> to which method calls
* are redirected * are redirected
*/ */
protected Reader in; protected Reader in;
/*************************************************************************/
/*
* Constructors
*/
/** /**
* Create a <code>FilterReader</code> with the specified subordinate * Create a <code>FilterReader</code> with the specified subordinate
* <code>Reader</code>. * <code>Reader</code>.
...@@ -93,12 +83,6 @@ public abstract class FilterReader extends Reader ...@@ -93,12 +83,6 @@ public abstract class FilterReader extends Reader
this.in = in; this.in = in;
} }
/*************************************************************************/
/*
* Instance Methods
*/
/** /**
* Calls the <code>in.mark(int)</code> method. * Calls the <code>in.mark(int)</code> method.
* *
...@@ -111,8 +95,6 @@ public abstract class FilterReader extends Reader ...@@ -111,8 +95,6 @@ public abstract class FilterReader extends Reader
in.mark(readlimit); in.mark(readlimit);
} }
/*************************************************************************/
/** /**
* Calls the <code>in.markSupported()</code> method. * Calls the <code>in.markSupported()</code> method.
* *
...@@ -124,8 +106,6 @@ public abstract class FilterReader extends Reader ...@@ -124,8 +106,6 @@ public abstract class FilterReader extends Reader
return(in.markSupported()); return(in.markSupported());
} }
/*************************************************************************/
/** /**
* Calls the <code>in.reset()</code> method. * Calls the <code>in.reset()</code> method.
* *
...@@ -136,8 +116,6 @@ public abstract class FilterReader extends Reader ...@@ -136,8 +116,6 @@ public abstract class FilterReader extends Reader
in.reset(); in.reset();
} }
/*************************************************************************/
/** /**
* Calls the <code>in.read()</code> method. * Calls the <code>in.read()</code> method.
* *
...@@ -150,8 +128,6 @@ public abstract class FilterReader extends Reader ...@@ -150,8 +128,6 @@ public abstract class FilterReader extends Reader
return(in.ready()); return(in.ready());
} }
/*************************************************************************/
/** /**
* Calls the <code>in.skip(long)</code> method * Calls the <code>in.skip(long)</code> method
* *
...@@ -166,8 +142,6 @@ public abstract class FilterReader extends Reader ...@@ -166,8 +142,6 @@ public abstract class FilterReader extends Reader
return(in.skip(num_chars)); return(in.skip(num_chars));
} }
/*************************************************************************/
/** /**
* Calls the <code>in.read()</code> method * Calls the <code>in.read()</code> method
* *
...@@ -180,8 +154,6 @@ public abstract class FilterReader extends Reader ...@@ -180,8 +154,6 @@ public abstract class FilterReader extends Reader
return(in.read()); return(in.read());
} }
/*************************************************************************/
/** /**
* Calls the <code>in.read(char[], int, int)</code> method. * Calls the <code>in.read(char[], int, int)</code> method.
* *
...@@ -198,8 +170,6 @@ public abstract class FilterReader extends Reader ...@@ -198,8 +170,6 @@ public abstract class FilterReader extends Reader
return(in.read(buf, offset, len)); return(in.read(buf, offset, len));
} }
/*************************************************************************/
/** /**
* This method closes the stream by calling the <code>close()</code> method * This method closes the stream by calling the <code>close()</code> method
* of the underlying stream. * of the underlying stream.
......
...@@ -56,22 +56,12 @@ package java.io; ...@@ -56,22 +56,12 @@ package java.io;
*/ */
public abstract class FilterWriter extends Writer public abstract class FilterWriter extends Writer
{ {
/*
* Instance Variables
*/
/** /**
* This is the subordinate <code>Writer</code> that this class * This is the subordinate <code>Writer</code> that this class
* redirects its method calls to. * redirects its method calls to.
*/ */
protected Writer out; protected Writer out;
/*************************************************************************/
/*
* Constructors
*/
/** /**
* This method initializes an instance of <code>FilterWriter</code> * This method initializes an instance of <code>FilterWriter</code>
* to write to the specified subordinate <code>Writer</code>. * to write to the specified subordinate <code>Writer</code>.
...@@ -86,12 +76,6 @@ public abstract class FilterWriter extends Writer ...@@ -86,12 +76,6 @@ public abstract class FilterWriter extends Writer
this.out = out; this.out = out;
} }
/*************************************************************************/
/*
* Instance Methods
*/
/** /**
* This method closes the underlying <code>Writer</code>. Any * This method closes the underlying <code>Writer</code>. Any
* further attempts to write to this stream may throw an exception. * further attempts to write to this stream may throw an exception.
...@@ -103,8 +87,6 @@ public abstract class FilterWriter extends Writer ...@@ -103,8 +87,6 @@ public abstract class FilterWriter extends Writer
out.close(); out.close();
} }
/*************************************************************************/
/** /**
* This method attempt to flush all buffered output to be written to the * This method attempt to flush all buffered output to be written to the
* underlying output sink. * underlying output sink.
...@@ -116,8 +98,6 @@ public abstract class FilterWriter extends Writer ...@@ -116,8 +98,6 @@ public abstract class FilterWriter extends Writer
out.flush(); out.flush();
} }
/*************************************************************************/
/** /**
* This method writes a single char of output to the underlying * This method writes a single char of output to the underlying
* <code>Writer</code>. * <code>Writer</code>.
...@@ -131,8 +111,6 @@ public abstract class FilterWriter extends Writer ...@@ -131,8 +111,6 @@ public abstract class FilterWriter extends Writer
out.write(b); out.write(b);
} }
/*************************************************************************/
/** /**
* This method writes <code>len</code> chars from the array <code>buf</code> * This method writes <code>len</code> chars from the array <code>buf</code>
* starting at index <code>offset</code> to the underlying * starting at index <code>offset</code> to the underlying
...@@ -149,8 +127,6 @@ public abstract class FilterWriter extends Writer ...@@ -149,8 +127,6 @@ public abstract class FilterWriter extends Writer
out.write(buf, offset, len); out.write(buf, offset, len);
} }
/*************************************************************************/
/** /**
* This method writes <code>len</code> chars from the <code>String</code> * This method writes <code>len</code> chars from the <code>String</code>
* starting at position <code>offset</code>. * starting at position <code>offset</code>.
......
...@@ -57,7 +57,7 @@ package java.io; ...@@ -57,7 +57,7 @@ package java.io;
* stream, it has the same mark/reset functionality as the underlying * stream, it has the same mark/reset functionality as the underlying
* stream. The <code>mark()</code> and <code>reset()</code> methods * stream. The <code>mark()</code> and <code>reset()</code> methods
* in this class handle line numbers correctly. Calling * in this class handle line numbers correctly. Calling
* @code{reset()} resets the line number to the point at which * <code>reset()</code> resets the line number to the point at which
* <code>mark()</code> was called if the subordinate stream supports * <code>mark()</code> was called if the subordinate stream supports
* that functionality. * that functionality.
* <p> * <p>
...@@ -119,7 +119,7 @@ public class LineNumberInputStream extends FilterInputStream ...@@ -119,7 +119,7 @@ public class LineNumberInputStream extends FilterInputStream
/** /**
* This method returns the current line number * This method returns the current line number
* *
* @returns The current line number * @return The current line number
*/ */
public int getLineNumber() public int getLineNumber()
{ {
......
...@@ -58,8 +58,6 @@ public interface ObjectInput extends DataInput ...@@ -58,8 +58,6 @@ public interface ObjectInput extends DataInput
*/ */
public abstract int available() throws IOException; public abstract int available() throws IOException;
/*************************************************************************/
/** /**
* This method reading a byte of data from a stream. It returns that byte * This method reading a byte of data from a stream. It returns that byte
* as an int. This method blocks if no data is available to be read. * as an int. This method blocks if no data is available to be read.
...@@ -70,8 +68,6 @@ public interface ObjectInput extends DataInput ...@@ -70,8 +68,6 @@ public interface ObjectInput extends DataInput
*/ */
public abstract int read() throws IOException; public abstract int read() throws IOException;
/*************************************************************************/
/** /**
* This method reads raw bytes and stores them them a byte array buffer. * This method reads raw bytes and stores them them a byte array buffer.
* Note that this method will block if no data is available. However, * Note that this method will block if no data is available. However,
...@@ -86,8 +82,6 @@ public interface ObjectInput extends DataInput ...@@ -86,8 +82,6 @@ public interface ObjectInput extends DataInput
*/ */
public abstract int read(byte[] buf) throws IOException; public abstract int read(byte[] buf) throws IOException;
/*************************************************************************/
/** /**
* This method reads raw bytes and stores them in a byte array buffer * This method reads raw bytes and stores them in a byte array buffer
* <code>buf</code> starting at position <code>offset</code> into the * <code>buf</code> starting at position <code>offset</code> into the
...@@ -107,8 +101,6 @@ public interface ObjectInput extends DataInput ...@@ -107,8 +101,6 @@ public interface ObjectInput extends DataInput
*/ */
public abstract int read(byte[] buf, int offset, int len) throws IOException; public abstract int read(byte[] buf, int offset, int len) throws IOException;
/*************************************************************************/
/** /**
* Reads an object instance and returns it. If the class for the object * Reads an object instance and returns it. If the class for the object
* being read cannot be found, then a ClassNotFoundException will * being read cannot be found, then a ClassNotFoundException will
...@@ -123,8 +115,6 @@ public interface ObjectInput extends DataInput ...@@ -123,8 +115,6 @@ public interface ObjectInput extends DataInput
public abstract Object readObject() public abstract Object readObject()
throws ClassNotFoundException, IOException; throws ClassNotFoundException, IOException;
/*************************************************************************/
/** /**
* This method causes the specified number of bytes to be read and * This method causes the specified number of bytes to be read and
* discarded. It is possible that fewer than the requested number of bytes * discarded. It is possible that fewer than the requested number of bytes
...@@ -138,8 +128,6 @@ public interface ObjectInput extends DataInput ...@@ -138,8 +128,6 @@ public interface ObjectInput extends DataInput
*/ */
public abstract long skip(long num_bytes) throws IOException; public abstract long skip(long num_bytes) throws IOException;
/*************************************************************************/
/** /**
* This method closes the input source * This method closes the input source
* *
......
...@@ -58,8 +58,6 @@ public interface ObjectOutput extends DataOutput ...@@ -58,8 +58,6 @@ public interface ObjectOutput extends DataOutput
*/ */
public abstract void write(int b) throws IOException; public abstract void write(int b) throws IOException;
/*************************************************************************/
/** /**
* This method writes all the bytes in the specified byte array to the * This method writes all the bytes in the specified byte array to the
* output stream. * output stream.
...@@ -70,8 +68,6 @@ public interface ObjectOutput extends DataOutput ...@@ -70,8 +68,6 @@ public interface ObjectOutput extends DataOutput
*/ */
public abstract void write(byte[] buf) throws IOException; public abstract void write(byte[] buf) throws IOException;
/*************************************************************************/
/** /**
* This method writes <code>len</code> bytes from the specified array * This method writes <code>len</code> bytes from the specified array
* starting at index <code>offset</code> into that array. * starting at index <code>offset</code> into that array.
...@@ -85,8 +81,6 @@ public interface ObjectOutput extends DataOutput ...@@ -85,8 +81,6 @@ public interface ObjectOutput extends DataOutput
public abstract void write(byte[] buf, int offset, int len) public abstract void write(byte[] buf, int offset, int len)
throws IOException; throws IOException;
/*************************************************************************/
/** /**
* This method writes a object instance to a stream. The format of the * This method writes a object instance to a stream. The format of the
* data written is determined by the actual implementation of this method * data written is determined by the actual implementation of this method
...@@ -97,8 +91,6 @@ public interface ObjectOutput extends DataOutput ...@@ -97,8 +91,6 @@ public interface ObjectOutput extends DataOutput
*/ */
public abstract void writeObject(Object obj) throws IOException; public abstract void writeObject(Object obj) throws IOException;
/*************************************************************************/
/** /**
* This method causes any buffered data to be flushed out to the underlying * This method causes any buffered data to be flushed out to the underlying
* stream * stream
...@@ -107,8 +99,6 @@ public interface ObjectOutput extends DataOutput ...@@ -107,8 +99,6 @@ public interface ObjectOutput extends DataOutput
*/ */
public abstract void flush() throws IOException; public abstract void flush() throws IOException;
/*************************************************************************/
/** /**
* This method closes the underlying stream. * This method closes the underlying stream.
* *
......
...@@ -166,13 +166,13 @@ public class ObjectStreamClass implements Serializable ...@@ -166,13 +166,13 @@ public class ObjectStreamClass implements Serializable
/** /**
Returns a textual representation of this * Returns a textual representation of this
<code>ObjectStreamClass</code> object including the name of the * <code>ObjectStreamClass</code> object including the name of the
class it represents as well as that class's serial version * class it represents as well as that class's serial version
stream-unique identifier. * stream-unique identifier.
*
@see getSerialVersionUID () * @see #getSerialVersionUID()
@see getName () * @see #getName()
*/ */
public String toString () public String toString ()
{ {
......
/* PrintStream.java -- OutputStream for printing output /* PrintStream.java -- OutputStream for printing output
Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc. Copyright (C) 1998,2003 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
......
...@@ -77,7 +77,7 @@ public class PushbackReader extends FilterReader ...@@ -77,7 +77,7 @@ public class PushbackReader extends FilterReader
* specified subordinate <code>Reader</code> with a default pushback buffer * specified subordinate <code>Reader</code> with a default pushback buffer
* size of 1. * size of 1.
* *
* @code in The subordinate stream to read from * @param in The subordinate stream to read from
*/ */
public PushbackReader(Reader in) public PushbackReader(Reader in)
{ {
......
...@@ -67,8 +67,6 @@ public final class SerializablePermission extends BasicPermission ...@@ -67,8 +67,6 @@ public final class SerializablePermission extends BasicPermission
private static final String[] legal_names = { "enableSubclassImplementation", private static final String[] legal_names = { "enableSubclassImplementation",
"enableSubstitution" }; "enableSubstitution" };
/*************************************************************************/
/* /*
* Constructors * Constructors
*/ */
...@@ -88,8 +86,6 @@ public final class SerializablePermission extends BasicPermission ...@@ -88,8 +86,6 @@ public final class SerializablePermission extends BasicPermission
this(name, null); this(name, null);
} }
/*************************************************************************/
/** /**
* This method initializes a new instance of * This method initializes a new instance of
* <code>SerializablePermission</code> * <code>SerializablePermission</code>
......
...@@ -580,7 +580,7 @@ public class StreamTokenizer ...@@ -580,7 +580,7 @@ public class StreamTokenizer
* quote, and comment) from all characters. It is equivalent to calling * quote, and comment) from all characters. It is equivalent to calling
* <code>ordinaryChars(0x00, 0xFF)</code>. * <code>ordinaryChars(0x00, 0xFF)</code>.
* *
* @see ordinaryChars * @see #ordinaryChars(int, int)
*/ */
public void resetSyntax() public void resetSyntax()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment