Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rendsite.tools
Class Toolbox

    java.lang.Object
      rendsite.tools.Toolbox

    public class Toolbox

extends java.lang.Object

General tools.

Author:
  erich Version History

       10NOV09 - EPG - First package release.

Constructor Summary
`Toolbox()`

Method Summary
`static java.lang.String` | `getExtension(java.lang.String name)` Get file extension.
`static java.lang.String` | `pickNotNullNorBlank(java.lang.String v1, java.lang.String v2)` Return whichever is not null nor blank.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Toolbox

    public Toolbox()

Method Detail

### pickNotNullNorBlank

    public static java.lang.String pickNotNullNorBlank(java.lang.String v1,
                                                       java.lang.String v2)

  Return whichever is not null nor blank. If neither is, it'll return the first string.

  Parameters:
    `v1` - String 1
    `v2` - String 2
  Returns:
    the best string. It'll return blank instead of a null;

### getExtension

    public static java.lang.String getExtension(java.lang.String name)

  Get file extension.

  Parameters:
    `name` -
  Returns:
    the extension, if present, or null.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

rendsite.