[kaffe] CVS kaffe (robilad): Removed java/lang/ProcessInputStream
Kaffe CVS
cvs-commits at kaffe.org
Tue May 3 17:58:04 PDT 2005
PatchSet 6437
Date: 2005/05/04 00:53:28
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Removed java/lang/ProcessInputStream
2005-05-03 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/lang/ProcessInputStream.java: Removed,
since unused.
Members:
ChangeLog:1.3965->1.3966
libraries/javalib/Makefile.am:1.346->1.347
libraries/javalib/Makefile.in:1.434->1.435
libraries/javalib/all.files:1.120->1.121
libraries/javalib/java/lang/ProcessInputStream.java:1.6->1.7(DEAD)
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3965 kaffe/ChangeLog:1.3966
--- kaffe/ChangeLog:1.3965 Tue May 3 20:43:01 2005
+++ kaffe/ChangeLog Wed May 4 00:53:28 2005
@@ -1,5 +1,10 @@
2005-05-03 Dalibor Topic <robilad at kaffe.org>
+ * libraries/javalib/java/lang/ProcessInputStream.java: Removed,
+ since unused.
+
+2005-05-03 Dalibor Topic <robilad at kaffe.org>
+
* include/jsyscall.h (SystemCallInterface): Changed prototypes to
use socklen_t where appropriate.
Index: kaffe/libraries/javalib/Makefile.am
diff -u kaffe/libraries/javalib/Makefile.am:1.346 kaffe/libraries/javalib/Makefile.am:1.347
--- kaffe/libraries/javalib/Makefile.am:1.346 Sun Apr 24 09:57:38 2005
+++ kaffe/libraries/javalib/Makefile.am Wed May 4 00:53:32 2005
@@ -2573,7 +2573,6 @@
java/lang/OutOfMemoryError.java \
java/lang/Package.java \
java/lang/Process.java \
- java/lang/ProcessInputStream.java \
java/lang/Readable.java \
java/lang/Runnable.java \
java/lang/Runtime.java \
Index: kaffe/libraries/javalib/Makefile.in
diff -u kaffe/libraries/javalib/Makefile.in:1.434 kaffe/libraries/javalib/Makefile.in:1.435
--- kaffe/libraries/javalib/Makefile.in:1.434 Sun Apr 24 09:57:39 2005
+++ kaffe/libraries/javalib/Makefile.in Wed May 4 00:53:33 2005
@@ -3070,7 +3070,6 @@
java/lang/OutOfMemoryError.java \
java/lang/Package.java \
java/lang/Process.java \
- java/lang/ProcessInputStream.java \
java/lang/Readable.java \
java/lang/Runnable.java \
java/lang/Runtime.java \
Index: kaffe/libraries/javalib/all.files
diff -u kaffe/libraries/javalib/all.files:1.120 kaffe/libraries/javalib/all.files:1.121
--- kaffe/libraries/javalib/all.files:1.120 Sun Apr 24 09:57:41 2005
+++ kaffe/libraries/javalib/all.files Wed May 4 00:53:34 2005
@@ -2089,7 +2089,6 @@
java/lang/Object.java
java/lang/OutOfMemoryError.java
java/lang/Package.java
-java/lang/ProcessInputStream.java
java/lang/Process.java
java/lang/Readable.java
java/lang/reflect/AccessibleObject.java
===================================================================
Checking out kaffe/libraries/javalib/java/lang/ProcessInputStream.java
RCS: /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/Attic/ProcessInputStream.java,v
VERS: 1.6
***************
--- kaffe/libraries/javalib/java/lang/ProcessInputStream.java Wed May 4 00:58:04 2005
+++ /dev/null Sun Aug 4 19:57:58 2002
@@ -1,165 +0,0 @@
-
-/*
- * Java core library component.
- *
- * Copyright (c) 1997, 1998
- * Transvirtual Technologies, Inc. All rights reserved.
- *
- * See the file "license.terms" for information on usage and redistribution
- * of this file.
- */
-
-package java.lang;
-
-import java.io.DataInput;
-import java.io.EOFException;
-import java.io.FilterInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-import kaffe.util.UTF8;
-
-class ProcessInputStream extends FilterInputStream implements DataInput {
-
-public ProcessInputStream(InputStream in) {
- super(in);
-}
-
-final public int read(byte b[]) throws IOException {
- return read(b, 0, b.length);
-}
-
-final public int read(byte b[], int off, int len) throws IOException {
- return super.read(b, off, len);
-}
-
-final public boolean readBoolean() throws IOException {
- return (readByte()!=0);
-}
-
-final public byte readByte() throws IOException {
- int value=super.read();
-
- if (value==-1) throw new EOFException();
-
- return (byte )value;
-}
-
-final public char readChar() throws IOException {
- int b1=readUnsignedByte();
- int b2=readUnsignedByte();
-
- return (char )((b1 << 8) | b2);
-}
-
-final public double readDouble() throws IOException {
- return Double.longBitsToDouble(readLong());
-}
-
-final public float readFloat() throws IOException {
- return Float.intBitsToFloat(readInt());
-}
-
-final public void readFully(byte b[]) throws IOException {
- readFully(b, 0, b.length);
-}
-
-final public void readFully(byte b[], int off, int len) throws IOException {
- int total = 0;
- while (total < len) {
- int got = read(b, off + total, len + total);
- if (got == -1) {
- throw new EOFException();
- }
- total += got;
- }
-}
-
-final public int readInt() throws IOException {
- int b1=readUnsignedByte();
- int b2=readUnsignedByte();
- int b3=readUnsignedByte();
- int b4=readUnsignedByte();
-
- int temp=(b1 << 24) | (b2 << 16) | (b3 << 8) | b4;
-
- return temp;
-}
-
-final public String readLine() throws IOException {
- boolean EOL=false;
- StringBuffer buffer=new StringBuffer();
-
- while (!EOL) {
- int data=super.read();
-
- if (data==-1) {
- EOL=true;
- }
- else {
- buffer.append((byte )data);
- if ((char )data=='\n') EOL=true;
- if ((char )data=='\r') {
- /* Check for "\r\n" */
- super.mark(1);
- int nextByte=super.read();
-
- if (nextByte==-1) EOL=true;
- else if ((char )nextByte=='\n') {
- buffer.append((byte )nextByte);
- EOL=true;
- }
- else {
- /* Jump back to mark */
- reset();
- }
- }
- }
- }
-
- return buffer.toString();
-}
-
-final public long readLong() throws IOException {
- int i1=readInt(); /* b1-4 */
- int i2=readInt(); /* b5-8 */
-
- return (((long)i1) << 32) | (((long)i2) & 0xFFFFFFFF);
-}
-
-final public short readShort() throws IOException {
- int b1=readUnsignedByte();
- int b2=readUnsignedByte();
-
- return (short)((b1 << 8)|b2);
-}
-
-final public String readUTF() throws IOException {
- return UTF8.decode(this, readUnsignedShort());
-}
-
-final public int readUnsignedByte() throws IOException {
- int value=super.read();
-
- if (value==-1) throw new EOFException();
- return (value & 0xFF);
-}
-
-final public int readUnsignedShort() throws IOException {
- int b1=readUnsignedByte();
- int b2=readUnsignedByte();
-
- return (int )(b1 << 8) | b2;
-}
-
-final public int skipBytes(int n) throws IOException {
- long temp = super.skip((long)n);
- int skipped = (int)temp;
-
- if (skipped != n) {
- throw new EOFException();
- }
-
- return skipped;
-}
-}
More information about the kaffe
mailing list