< prev index next >

src/java.desktop/share/classes/javax/swing/text/rtf/AbstractFilter.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 47,67 **** * @see OutputStream */ abstract class AbstractFilter extends OutputStream { /** A table mapping bytes to characters */ ! protected char translationTable[]; /** A table indicating which byte values should be interpreted as * characters and which should be treated as formatting codes */ ! protected boolean specialsTable[]; /** A translation table which does ISO Latin-1 (trivial) */ ! static final char latin1TranslationTable[]; /** A specials table which indicates that no characters are special */ ! static final boolean noSpecialsTable[]; /** A specials table which indicates that all characters are special */ ! static final boolean allSpecialsTable[]; static { int i; noSpecialsTable = new boolean[256]; --- 47,67 ---- * @see OutputStream */ abstract class AbstractFilter extends OutputStream { /** A table mapping bytes to characters */ ! protected char[] translationTable; /** A table indicating which byte values should be interpreted as * characters and which should be treated as formatting codes */ ! protected boolean[] specialsTable; /** A translation table which does ISO Latin-1 (trivial) */ ! static final char[] latin1TranslationTable; /** A specials table which indicates that no characters are special */ ! static final boolean[] noSpecialsTable; /** A specials table which indicates that all characters are special */ ! static final boolean[] allSpecialsTable; static { int i; noSpecialsTable = new boolean[256];
*** 91,101 **** * @param in An InputStream providing text. */ public void readFromStream(InputStream in) throws IOException { ! byte buf[]; int count; buf = new byte[16384]; while(true) { --- 91,101 ---- * @param in An InputStream providing text. */ public void readFromStream(InputStream in) throws IOException { ! byte[] buf; int count; buf = new byte[16384]; while(true) {
*** 108,118 **** } public void readFromReader(Reader in) throws IOException { ! char buf[]; int count; buf = new char[2048]; while(true) { --- 108,118 ---- } public void readFromReader(Reader in) throws IOException { ! char[] buf; int count; buf = new char[2048]; while(true) {
< prev index next >