summaryrefslogtreecommitdiff
path: root/demos/java/gsjava/src/com/artifex/gsjava/callbacks/IStdOutFunction.java
blob: c3635f544531f1e1ae8f606ba16712060c72bc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.artifex.gsjava.callbacks;

@FunctionalInterface
public interface IStdOutFunction {

	/**
	 * Called when something should be written to the standard
	 * output stream.
	 *
	 * @param callerHandle The caller handle.
	 * @param str The string to write.
	 * @param len The number of bytes to write.
	 * @return The number of bytes written, must be <code>len</code>.
	 */
	public int onStdOut(long callerHandle, byte[] str, int len);
}