From fa0c0389856cd16537461344b6c44743b84731a2 Mon Sep 17 00:00:00 2001 From: tromey Date: Wed, 3 Nov 1999 19:25:13 +0000 Subject: Actually removed files which were supposedly removed a long time ago. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30379 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/gnu/gcj/util/path/PathEntry.java | 55 -------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 libjava/gnu/gcj/util/path/PathEntry.java (limited to 'libjava/gnu/gcj/util/path/PathEntry.java') diff --git a/libjava/gnu/gcj/util/path/PathEntry.java b/libjava/gnu/gcj/util/path/PathEntry.java deleted file mode 100644 index f83fc170170..00000000000 --- a/libjava/gnu/gcj/util/path/PathEntry.java +++ /dev/null @@ -1,55 +0,0 @@ -// PathEntry.java -- abstract element of search paths - -/* Copyright (C) 1999 Cygnus Solutions - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -/* Author: Kresten Krab Thorup */ - -package gnu.gcj.util.path; - -import java.util.*; -import java.util.zip.*; -import java.io.*; -import java.net.*; - -abstract class PathEntry { - abstract URL getURL (String file); - abstract InputStream getStream (String file); - abstract byte[] getBytes (String file); - - /** - * Utility routine like InputStream.read(byte[], 0, len), but will - * read fully, even if all the data is not available at once. - */ - protected static byte[] readbytes (InputStream is, int length) - { - try { - - byte[] data = new byte[length]; - int read; - int off = 0; - - while (off != length) - { - read = is.read (data, off, (int) (length-off)); - - if (read == -1) - return null; - - off += read; - } - - return data; - } catch (IOException x) { - return null; - } - } - -} - - -- cgit v1.2.3