@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } }
@Override public int read() throws IOException { synchronized (stream) { // If it can be pulled direct from the buffer, don't go via the slow path if (stream.hasBufferedInputBytes()) { try { return stream.read(); } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } } byte[] b = new byte[1]; // java.io.InputStream#read must return an unsigned value; return read(b, 0, 1) == 1 ? b[0] & 0xff: -1; }
@Override public int read() throws IOException { synchronized (stream) { // If it can be pulled direct from the buffer, don't go via the slow path if (stream.hasBufferedInputBytes()) { try { return stream.read(); } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } } byte[] b = new byte[1]; // java.io.InputStream#read must return an unsigned value; return read(b, 0, 1) == 1 ? b[0] & 0xff: -1; }
@Override public int read() throws IOException { synchronized (stream) { // If it can be pulled direct from the buffer, don't go via the slow path if (stream.hasBufferedInputBytes()) { try { return stream.read(); } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } } byte[] b = new byte[1]; // java.io.InputStream#read must return an unsigned value; return read(b, 0, 1) == 1 ? b[0] & 0xff: -1; }
@Override public int read() throws IOException { synchronized (stream) { // If it can be pulled direct from the buffer, don't go via the slow path if (stream.hasBufferedInputBytes()) { try { return stream.read(); } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } } byte[] b = new byte[1]; // java.io.InputStream#read must return an unsigned value; return read(b, 0, 1) == 1 ? b[0] & 0xff: -1; }
throw new IOException(ex.getMessage());
throw new IOException(ex.getMessage());
throw new IOException(ex.getMessage());
throw new IOException(ex.getMessage());