Komplettes G-Earth Paket inkl. JRE, Extensions und Tools. Extensions: - G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate - G-Presets, G-Translator, G-Trigger, G-itemViewer - Market Utils, Packet Info Explorer, Plants - RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector - SpyFriends, WallAligner, XabboScripter, xabbo
107 lines
2.7 KiB
Java
107 lines
2.7 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.servlet;
|
|
|
|
import java.io.CharConversionException;
|
|
import java.io.IOException;
|
|
import java.io.OutputStream;
|
|
import java.text.MessageFormat;
|
|
import java.util.ResourceBundle;
|
|
import javax.servlet.WriteListener;
|
|
|
|
public abstract class ServletOutputStream
|
|
extends OutputStream {
|
|
private static final String LSTRING_FILE = "javax.servlet.LocalStrings";
|
|
private static ResourceBundle lStrings = ResourceBundle.getBundle("javax.servlet.LocalStrings");
|
|
|
|
protected ServletOutputStream() {
|
|
}
|
|
|
|
public void print(String s) throws IOException {
|
|
if (s == null) {
|
|
s = "null";
|
|
}
|
|
int len = s.length();
|
|
for (int i = 0; i < len; ++i) {
|
|
char c = s.charAt(i);
|
|
if ((c & 0xFF00) != 0) {
|
|
String errMsg = lStrings.getString("err.not_iso8859_1");
|
|
Object[] errArgs = new Object[]{Character.valueOf(c)};
|
|
errMsg = MessageFormat.format(errMsg, errArgs);
|
|
throw new CharConversionException(errMsg);
|
|
}
|
|
this.write(c);
|
|
}
|
|
}
|
|
|
|
public void print(boolean b) throws IOException {
|
|
String msg = b ? lStrings.getString("value.true") : lStrings.getString("value.false");
|
|
this.print(msg);
|
|
}
|
|
|
|
public void print(char c) throws IOException {
|
|
this.print(String.valueOf(c));
|
|
}
|
|
|
|
public void print(int i) throws IOException {
|
|
this.print(String.valueOf(i));
|
|
}
|
|
|
|
public void print(long l) throws IOException {
|
|
this.print(String.valueOf(l));
|
|
}
|
|
|
|
public void print(float f) throws IOException {
|
|
this.print(String.valueOf(f));
|
|
}
|
|
|
|
public void print(double d) throws IOException {
|
|
this.print(String.valueOf(d));
|
|
}
|
|
|
|
public void println() throws IOException {
|
|
this.print("\r\n");
|
|
}
|
|
|
|
public void println(String s) throws IOException {
|
|
this.print(s);
|
|
this.println();
|
|
}
|
|
|
|
public void println(boolean b) throws IOException {
|
|
this.print(b);
|
|
this.println();
|
|
}
|
|
|
|
public void println(char c) throws IOException {
|
|
this.print(c);
|
|
this.println();
|
|
}
|
|
|
|
public void println(int i) throws IOException {
|
|
this.print(i);
|
|
this.println();
|
|
}
|
|
|
|
public void println(long l) throws IOException {
|
|
this.print(l);
|
|
this.println();
|
|
}
|
|
|
|
public void println(float f) throws IOException {
|
|
this.print(f);
|
|
this.println();
|
|
}
|
|
|
|
public void println(double d) throws IOException {
|
|
this.print(d);
|
|
this.println();
|
|
}
|
|
|
|
public abstract boolean isReady();
|
|
|
|
public abstract void setWriteListener(WriteListener var1);
|
|
}
|
|
|