graveyard/tools/org/apache/axis/tools/trace/Tracer.java
/*
	 * This method is careful to get the line separators because other
	 * other methods have been careless assuming that the line separator
	 * is always only \n, whereas it maybe \r\n.
	 */
This method is careful to get the line separators because other
other methods have been careless assuming that the line separator
is always only \n, whereas it maybe \r\n.
This method is careful to get the line separators because other other methods have been careless assuming that the line separator is always only \ n whereas it maybe \ r \ n .
public void writeTrace(String s) throws IOException {
		if (s.startsWith("\n") || s.startsWith("\r"))
			super.newLine();
		StringTokenizer st = new StringTokenizer(s, "\n\r");
		while (st.hasMoreTokens()) {
			super.write(st.nextToken());
			if (st.hasMoreTokens())
				super.newLine();
		}
		if (s.endsWith("\n") || s.endsWith("\r"))
			super.newLine();
		if (Options.verbose())
			System.out.print(s);
	}
public void writeTrace ( String s ) throws IOException { if ( s . startsWith ( "\n" ) || s . startsWith ( "\r" ) ) super . newLine ( ) ; StringTokenizer st = new StringTokenizer ( s , "\n\r" ) ; while ( st . hasMoreTokens ( ) ) { super . write ( st . nextToken ( ) ) ; if ( st . hasMoreTokens ( ) ) super . newLine ( ) ; } if ( s . endsWith ( "\n" ) || s . endsWith ( "\r" ) ) super . newLine ( ) ; if ( Options . verbose ( ) ) System . out . print ( s ) ; }
This method is careful to get the line separators because other
 other methods have been careless assuming that the line separator
 is always only \n, whereas it maybe \r\n.
This method is careful to get the line separators because other other methods have been careless assuming that the line separator is always only \ n whereas it maybe \ r \ n .