org.apache.lucene.util

Class Constants

public final class Constants extends Object

Some useful constants.

Version: $Id: Constants.java,v 1.3 2004/03/29 22:48:05 cutting Exp $

Author: Doug Cutting

Field Summary
static booleanJAVA_1_1
True iff this is Java version 1.1.
static booleanJAVA_1_2
True iff this is Java version 1.2.
static booleanJAVA_1_3
True iff this is Java version 1.3.
static StringJAVA_VERSION
The value of System.getProperty("java.version").
static booleanLINUX
True iff running on Linux.
static StringOS_NAME
The value of System.getProperty("os.name").
static booleanSUN_OS
True iff running on SunOS.
static booleanWINDOWS
True iff running on Windows.

Field Detail

JAVA_1_1

public static final boolean JAVA_1_1
True iff this is Java version 1.1.

JAVA_1_2

public static final boolean JAVA_1_2
True iff this is Java version 1.2.

JAVA_1_3

public static final boolean JAVA_1_3
True iff this is Java version 1.3.

JAVA_VERSION

public static final String JAVA_VERSION
The value of System.getProperty("java.version"). *

LINUX

public static final boolean LINUX
True iff running on Linux.

OS_NAME

public static final String OS_NAME
The value of System.getProperty("os.name"). *

SUN_OS

public static final boolean SUN_OS
True iff running on SunOS.

WINDOWS

public static final boolean WINDOWS
True iff running on Windows.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.