Lines Matching defs:trigger

53  * @summary TestSocket Factory and tests of the basic trigger, match, and replace functions
60 * trigger, and then match and replace output stream contents to simulate failures.
62 * The trigger is a sequence of bytes that must be found before looking
63 * for the bytes to match and replace. If the trigger sequence is empty
64 * matching is immediately enabled. While waiting for the trigger to be found
66 * The when triggered and when a trigger is non-empty, matching looks for
74 * The trigger, match, and replacement bytes arrays can be changed at any
120 * Set the match and replacement bytes, with an empty trigger.
131 * Set the trigger, match, and replacement bytes.
132 * The trigger, match, and replacements are propagated to all existing sockets.
134 * @param triggerBytes array of bytes to use as a trigger, may be zero length
135 * @param matchBytes bytes to match after the trigger has been seen
191 * The OutputStreams it produces watch for a trigger and then
209 * The trigger is empty.
239 * Set the match and replacement bytes, with an empty trigger.
250 * Set the trigger, match, and replacement bytes.
251 * The trigger, match, and replacements are propagated to the
254 * @param triggerBytes array of bytes to use as a trigger, may be zero length
255 * @param matchBytes bytes to match after the trigger has been seen
412 * The trigger is empty.
438 * Set the match and replacement bytes, with an empty trigger.
449 * Set the trigger, match, and replacement bytes.
450 * The trigger, match, and replacements are propagated to all existing sockets.
452 * @param triggerBytes array of bytes to use as a trigger, may be zero length
453 * @param matchBytes bytes to match after the trigger has been seen
604 * An OutputStream that looks for a trigger to enable matching and
660 // if trigger not satisfied, keep looking
670 // trigger not used or has been satisfied
674 triggerIndex = 0; // match/replace ok, reset trigger
796 obj1Data, obj1Result}, // different trigger, replace
798 obj1Data, obj1Data}, // no trigger, no replace
803 public static void test1(byte[] trigger, byte[] match, byte[] replace,
805 System.out.printf("trigger: %s, match: %s, replace: %s%n", Arrays.toString(trigger),
810 log, trigger, match, replace)) {