Package pivot.util.concurrent

Examples of pivot.util.concurrent.AbortException


            this.inputStream = inputStream;
        }

        public int read() throws IOException {
            if (abort) {
                throw new AbortException();
            }

            int result = inputStream.read();

            if (result != -1) {
View Full Code Here


            return result;
        }

        public int read(byte b[]) throws IOException {
            if (abort) {
                throw new AbortException();
            }

            int count = inputStream.read(b);

            if (count != -1) {
View Full Code Here

            return count;
        }

        public int read(byte b[], int off, int len) throws IOException {
            if (abort) {
                throw new AbortException();
            }

            int count = inputStream.read(b, off, len);

            if (count != -1) {
View Full Code Here

            return count;
        }

        public long skip(long n) throws IOException {
            if (abort) {
                throw new AbortException();
            }

            long count = inputStream.skip(n);
            bytesReceived += count;
            return count;
View Full Code Here

            return count;
        }

        public int available() throws IOException {
            if (abort) {
                throw new AbortException();
            }

            return inputStream.available();
        }
View Full Code Here

            inputStream.close();
        }

        public void mark(int readLimit) {
            if (abort) {
                throw new AbortException();
            }

            inputStream.mark(readLimit);
            mark = bytesReceived;
        }
View Full Code Here

            mark = bytesReceived;
        }

        public void reset() throws IOException {
            if (abort) {
                throw new AbortException();
            }

            inputStream.reset();
            bytesReceived = mark;
        }
View Full Code Here

            outputStream.close();
        }

        public void flush() throws IOException {
            if (abort) {
                throw new AbortException();
            }

            outputStream.flush();
        }
View Full Code Here

            outputStream.flush();
        }

        public void write(byte[] b) throws IOException {
            if (abort) {
                throw new AbortException();
            }

            outputStream.write(b);
            bytesSent += b.length;
        }
View Full Code Here

            bytesSent += b.length;
        }

        public void write(byte[] b, int off, int len) throws IOException {
            if (abort) {
                throw new AbortException();
            }

            outputStream.write(b, off, len);
            bytesSent += len;
        }
View Full Code Here

TOP

Related Classes of pivot.util.concurrent.AbortException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.