git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274022 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -231,6 +231,7 @@ public class Project { | |||||
| * | * | ||||
| * @param defaultInputStream the default input stream to use when input | * @param defaultInputStream the default input stream to use when input | ||||
| * is reuested. | * is reuested. | ||||
| * @since Ant 1.6 | |||||
| */ | */ | ||||
| public void setDefaultInputStream(InputStream defaultInputStream) { | public void setDefaultInputStream(InputStream defaultInputStream) { | ||||
| this.defaultInputStream = defaultInputStream; | this.defaultInputStream = defaultInputStream; | ||||
| @@ -1293,6 +1294,7 @@ public class Project { | |||||
| * @return the number of bytes read | * @return the number of bytes read | ||||
| * | * | ||||
| * @exception IOException if the data cannot be read | * @exception IOException if the data cannot be read | ||||
| * @since Ant 1.6 | |||||
| */ | */ | ||||
| public int defaultInput(byte[] buffer, int offset, int length) | public int defaultInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| @@ -1313,6 +1315,7 @@ public class Project { | |||||
| * @return the number of bytes read | * @return the number of bytes read | ||||
| * | * | ||||
| * @exception IOException if the data cannot be read | * @exception IOException if the data cannot be read | ||||
| * @since Ant 1.6 | |||||
| */ | */ | ||||
| public int demuxInput(byte[] buffer, int offset, int length) | public int demuxInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| @@ -323,6 +323,7 @@ public abstract class Task extends ProjectComponent { | |||||
| * @return the number of bytes read | * @return the number of bytes read | ||||
| * | * | ||||
| * @exception IOException if the data cannot be read | * @exception IOException if the data cannot be read | ||||
| * @since Ant 1.6 | |||||
| */ | */ | ||||
| protected int handleInput(byte[] buffer, int offset, int length) | protected int handleInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| @@ -158,15 +158,9 @@ public class UnknownElement extends Task { | |||||
| } | } | ||||
| /** | /** | ||||
| * Handle an input request by this element | |||||
| * | |||||
| * @param buffer the buffer into which data is to be read. | |||||
| * @param offset the offset into the buffer at which data is stored. | |||||
| * @param length the amount of data to read | |||||
| * | |||||
| * @return the number of bytes read | |||||
| * @see Task#handleInput(byte[], int, int) | |||||
| * | * | ||||
| * @exception IOException if the data cannot be read | |||||
| * @since Ant 1.6 | |||||
| */ | */ | ||||
| protected int handleInput(byte[] buffer, int offset, int length) | protected int handleInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| @@ -298,6 +298,8 @@ public class Ant extends Task { | |||||
| /** | /** | ||||
| * @see Task#handleInput(byte[], int, int) | * @see Task#handleInput(byte[], int, int) | ||||
| * | |||||
| * @since Ant 1.6 | |||||
| */ | */ | ||||
| public int handleInput(byte[] buffer, int offset, int length) | public int handleInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| @@ -186,6 +186,11 @@ public class CallTarget extends Task { | |||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * @see Task#handleInput(byte[], int, int) | |||||
| * | |||||
| * @since Ant 1.6 | |||||
| */ | |||||
| public int handleInput(byte[] buffer, int offset, int length) | public int handleInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| if (callee != null) { | if (callee != null) { | ||||
| @@ -410,6 +410,11 @@ public class JUnitTestRunner implements TestListener { | |||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * @see Task#handleInput(byte[], int, int) | |||||
| * | |||||
| * @since Ant 1.6 | |||||
| */ | |||||
| protected int handleInput(byte[] buffer, int offset, int length) | protected int handleInput(byte[] buffer, int offset, int length) | ||||
| throws IOException { | throws IOException { | ||||
| return -1; | return -1; | ||||