de.frame4j
Class ShowProps

java.lang.Object
  extended by de.frame4j.ShowProps

public final class ShowProps
extends Object

Display the system and environment properties.

This application display the Java runtime environment's so called "system properties".

Small optional function (since 12.2005): If there is a command line argument
  java de.frame4j.ShowProps wind [-case]
the application returns 1 (as process exit code) instead of 0, if the argument can'nt be found as substring and ignoring case in any system property value. A second argument -case makes the search case sensitive.

Being the only exception in this respect within Frame4J, this application is totally independent (self contained) from the framework; hence missing all the flexibility and comfort.

The reason for this restriction is the use as a very basic (go no go) test after a down load or new installation of the framework and or a JDK.


© © Copyright 1998 - 2000, 2003 - 2005   Albrecht Weinert

Version:
1 (23.01.2010)
Author:
Albrecht Weinert
See Also:
de.frame4j, PropMap

Field Summary
static String copyRight
          Copyright note.
static String version
          Name and version.
 
Constructor Summary
ShowProps()
           
 
Method Summary
static int indexOf(CharSequence chain, CharSequence sub, boolean ignoreCase)
          An indexOf optionally ignoring case.
static void main(String[] args)
          Start method of ShowProps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static final String version
Name and version.

"ShowProps V1 (23.01.2010)"

See Also:
Constant Field Values

copyRight

public static final String copyRight
Copyright note.

"Copyright (c) 1998, 2004, 2009 Albrecht Weinert, Bochum (www.a-weinert.de)"

See Also:
Constant Field Values
Constructor Detail

ShowProps

public ShowProps()
Method Detail

main

public static final void main(String[] args)
Start method of ShowProps.

The call is: java de.frame4j.ShowProps

Parameters:
args - none or search-pattern or search-pattern -case

indexOf

public static final int indexOf(CharSequence chain,
                                CharSequence sub,
                                boolean ignoreCase)
An indexOf optionally ignoring case.

This method is like String.indexOf(java.lang.String) with the extra option to ignore case.

No exceptions are thrown; non adequate parameters return -1 .

Parameters:
chain - The String to be searched within.
sub - The Substring to be found in chain.
ignoreCase - true means ignore case in the matching process
Returns:
find / start index in chain or -1
See Also:
TextHelper, TextHelper.indexOf(CharSequence, CharSequence, int, boolean)