org.geotools.resources
Class Java6

java.lang.Object
  extended by org.geotools.resources.Java6

public final class Java6
extends java.lang.Object

Temporary methods to be removed when we will be allowed to compile for Java 6. The Java 6 methods that we would like to use are commented-out at the begining of each method.

Version:
$Id: Java6.java 30640 2008-06-12 17:34:32Z acuster $
Author:
Martin Desruisseaux

Method Summary
static int binarySearch(int[] a, int fromIndex, int toIndex, int key)
          Placeholder for Arrays.binarySearch(int[], int, int, int).
static java.io.Reader consoleReader()
          Returns the console reader, or null if none.
static java.io.PrintWriter consoleWriter()
          Returns the console writer, or null if none.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

binarySearch

public static int binarySearch(int[] a,
                               int fromIndex,
                               int toIndex,
                               int key)
Placeholder for Arrays.binarySearch(int[], int, int, int). Note that I'm too lazy for implementing a real binary search. Lets switch to Java 6 and throw away this code soon!


consoleReader

public static java.io.Reader consoleReader()
Returns the console reader, or null if none.


consoleWriter

public static java.io.PrintWriter consoleWriter()
Returns the console writer, or null if none.



Copyright © 1996-2010 Geotools. All Rights Reserved.