aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/convert/Input_8859_1.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/gcj/convert/Input_8859_1.java')
-rw-r--r--libjava/gnu/gcj/convert/Input_8859_1.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/libjava/gnu/gcj/convert/Input_8859_1.java b/libjava/gnu/gcj/convert/Input_8859_1.java
deleted file mode 100644
index 6c70034f3d9..00000000000
--- a/libjava/gnu/gcj/convert/Input_8859_1.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Copyright (C) 1999 Free Software Foundation
-
- 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. */
-
-package gnu.gcj.convert;
-
-/**
- * Convert ISO-Latin-1 (8851-1) text to Unicode.
- * @author Per Bothner <bothner@cygnus.com>
- * @date March 1999.
- */
-
-public class Input_8859_1 extends BytesToUnicode
-{
- public String getName() { return "8859_1"; }
-
- public int read (char[] outbuffer, int outpos, int count)
- {
- int origpos = outpos;
- // Make sure fields of this are in registers.
- int inpos = this.inpos;
- byte[] inbuffer = this.inbuffer;
- int inavail = this.inlength - inpos;
- int outavail = count;
- if (outavail > inavail)
- outavail = inavail;
- while (--outavail >= 0)
- {
- outbuffer[outpos++] = (char) (inbuffer[inpos++] & 0xFF);
- }
- this.inpos = inpos;
- return outpos - origpos;
- }
-}