home *** CD-ROM | disk | FTP | other *** search
- package com.ms.xml.util;
-
- import java.io.IOException;
- import java.io.InputStream;
-
- class ByteSwapInputStream extends InputStream {
- // $FF: renamed from: in java.io.InputStream
- private InputStream field_0;
- private int byte1;
-
- public ByteSwapInputStream(InputStream var1) {
- this.field_0 = var1;
- this.byte1 = -2;
- }
-
- public int read() throws IOException {
- if (this.byte1 == -2) {
- this.byte1 = this.field_0.read();
- return this.byte1 == -1 ? -1 : this.field_0.read();
- } else {
- int var1 = this.byte1;
- this.byte1 = -2;
- return var1;
- }
- }
- }
-