HOW TO
By default, when a MapObjects - Java application or applet initializes and interacts with data, informational messages are returned in the Java console associated with the executing application. For example, when an ArcIMS layer is added to a Map bean, the ArcXML request for feature data or a map image is returned in the Java console window. Depending on the type and volume of interaction, the size of the message content may be substantial and may contain compromising information. As a result, developers may choose to eliminate or more closely control the message output to limit console usage and information dispersal.
Code:
System.setOut(new java.io.PrintStream(new java.io.OutputStream() {
public void write(int b) throws java.io.IOException {
}
}));
Note:
This new java.io.OutputStream class overrides the write method for the output stream of character data to the console window. The write method is empty, thus the content of the output stream is not written to the console.
Article ID:000005513
Get help from ArcGIS experts
Download the Esri Support App