2003-05-09 Michael Koch <konqueror@gmx.de>

* java/io/DataOutputStream.java
	(writeShort): Made it synchronized.
	(writeChar): Likewise.
	(writeInt): Likewise.
	(writeLong): Liekwise.
	(writeUTF): Made it synchronized, renamed argument to match classpath.
	* java/io/InputStreamReader.java
	(converter): Added documentation.
	(read): Merged documentation from classpath.
	* java/io/OutputStreamWriter.java
	(OutputStreamWriter): Merged documentation from classpath.
	(close): Reformatted.
	(getEncoding): Likewise.
	(flush): Likewise.
	(write): Merged documentation from classpath, reformatted.

From-SVN: r66624
This commit is contained in:
Michael Koch 2003-05-09 07:10:58 +00:00 committed by Michael Koch
parent c6b97fac18
commit d8048dc2f7
4 changed files with 128 additions and 26 deletions

View file

@ -96,6 +96,10 @@ public class InputStreamReader extends Reader
// Last available character (in work buffer) to read.
int wcount;
/*
* This is the byte-character decoder class that does the reading and
* translation of bytes from the underlying stream.
*/
BytesToUnicode converter;
/**
@ -201,7 +205,20 @@ public class InputStreamReader extends Reader
}
}
public int read(char buf[], int offset, int length) throws IOException
/**
* This method reads up to <code>length</code> characters from the stream into
* the specified array starting at index <code>offset</code> into the
* array.
*
* @param buf The character array to recieve the data read
* @param offset The offset into the array to start storing characters
* @param length The requested number of characters to read.
*
* @return The actual number of characters read, or -1 if end of stream.
*
* @exception IOException If an error occurs
*/
public int read (char[] buf, int offset, int length) throws IOException
{
synchronized (lock)
{