home *** CD-ROM | disk | FTP | other *** search
- import java.io.DataInputStream;
- import java.io.IOException;
-
- class IOStream implements Streamable {
- // $FF: renamed from: in java.io.DataInputStream
- DataInputStream field_0;
- boolean unicode = false;
-
- public void init(String var1, int var2) {
- }
-
- public void setUnicode(boolean var1) {
- this.unicode = var1;
- }
-
- public IOStream(DataInputStream var1) {
- this.field_0 = var1;
- }
-
- public String connect() {
- return null;
- }
-
- public void send(String var1) {
- }
-
- public String receive() throws IOException {
- if (this.field_0 != null) {
- String var1 = this.unicode ? this.field_0.readUTF() : this.field_0.readLine();
- if (var1.endsWith("MODE para u+")) {
- this.unicode = true;
- var1 = ":SYSTEM privmsg user : *** Switched to UNICODE MODE: ";
- }
-
- return var1;
- } else {
- return null;
- }
- }
-
- public String disconnect() throws IOException {
- this.field_0.close();
- this.field_0 = null;
- return null;
- }
- }
-