Package com.aragost.javahg.internals

Examples of com.aragost.javahg.internals.RuntimeIOException


                if (this.in.isEof()) {
                    return null;
                }
                return StatusLine.fromStream(this.in);
            } catch (IOException e) {
                throw new RuntimeIOException(e);
            }
        }
View Full Code Here


        try {
            while (stream.peek() != -1) {
                result.add(ResolveStatusLine.fromStream(stream));
            }
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
        return result;
    }
View Full Code Here

                    break;
                }
                changesets.add(cset);
            }
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
        return changesets;
    }
View Full Code Here

            stream.mustMatch(REPOSITORY_TIP_ROLLBACK_REVSION);
            int rev = stream.decimalIntUpTo(' ');
            stream.consumeAll();
            return Utils.single(LogCommand.on(getRepository()).rev(String.valueOf(rev)).execute());
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

                Bookmark bookmark = new Bookmark(repo.changeset(node), name, active);
                result.add(bookmark);
            }
            return result;
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

        commandLine.addAll(Arrays.asList(args));
        try {
            this.outputChannelStream = this.repository.getServer().runCommand(commandLine, this);
            return new HgInputStream(outputChannelStream, this.repository.getServer().getDecoder());
        } catch (IOException e) {
            throw new RuntimeIOException(e);
        }
    }
View Full Code Here

    public void cleanUp() {
        if (this.outputChannelStream != null) {
            try {
                Utils.consumeAll(this.outputChannelStream);
            } catch (IOException e) {
                throw new RuntimeIOException(e);
            }
        }
    }
View Full Code Here

    public boolean hasNext() {
        if (!this.atEnd) {
            try {
                this.atEnd = (this.stream.peek() == -1);
            } catch (IOException e) {
                throw new RuntimeIOException(e);
            }
        }
        return !this.atEnd;
    }
View Full Code Here

    public String next() {
        if (hasNext()) {
            try {
                return this.stream.textUpTo('\n');
            } catch (IOException e) {
                throw new RuntimeIOException(e);
            }
        } else {
            throw new NoSuchElementException();
        }
    }
View Full Code Here

                if (this.in.peek() == -1) {
                    return null;
                }
                return StatusLine.fromStream(this.in);
            } catch (IOException e) {
                throw new RuntimeIOException(e);
            }
        }
View Full Code Here

TOP

Related Classes of com.aragost.javahg.internals.RuntimeIOException

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.