peterreilly 2005/03/11 03:10:50 Modified: src/main/org/apache/tools/ant DemuxInputStream.java Log: javadoc Revision Changes Path 1.12 +14 -1 ant/src/main/org/apache/tools/ant/DemuxInputStream.java Index: DemuxInputStream.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/DemuxInputStream.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- DemuxInputStream.java 2 Sep 2004 16:51:33 -0000 1.11 +++ DemuxInputStream.java 11 Mar 2005 11:10:50 -0000 1.12 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004 The Apache Software Foundation + * Copyright 2003-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,11 @@ this.project = project; } + /** + * Read a byte from the project's demuxed input. + * @return the next byte + * @throws IOException on error + */ public int read() throws IOException { byte[] buffer = new byte[1]; if (project.demuxInput(buffer, 0, 1) == -1) { @@ -52,6 +57,14 @@ } + /** + * Read bytes from the project's demuxed input. + * @param buffer an array of bytes to read into + * @param offset the offset in the array of bytes + * @param length the number of bytes in the array + * @return the number of bytes read + * @throws IOException on error + */ public int read(byte[] buffer, int offset, int length) throws IOException { return project.demuxInput(buffer, offset, length); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]