Skip navigation links


com.essbase.eas.utils
Class Utilities

java.lang.Object
  extended by com.essbase.eas.utils.Utilities


public final class Utilities
extends java.lang.Object

Title: Temp file project for Essbase Admin Services Description: This class provides some basic file operations needed by EAS. Copyright: Copyright (c) 2001 Company: Hyperion Solutions, Inc.

Version:
1.0, created 12/23/02
Author:
Namita Varma

Field Summary
static java.lang.String EMPTY
           
static boolean isConsoleLogEnabled
           
static boolean isScreenReaderEnabled
           
static java.lang.String LOCALHOST
           
static java.lang.String NAME_PROVIDER_SEPARATOR
           

 

Constructor Summary
Utilities()
           

 

Method Summary
static boolean areClientServerOnSameMachine(java.lang.String remoteEASServer)
          checks to determine if the eas server is on the same system as eas client
static java.lang.String eraseSpaces(java.lang.String string)
           
static java.net.URL fixHelpUrlLink(java.lang.String helpUrl)
           
static java.lang.String getCanonicalHostName(java.lang.String host)
           
static java.awt.FontMetrics getFontMetrics(java.awt.Font font)
           
static java.lang.String getGeneratedString(int strlen)
           
static java.lang.String getHost(java.lang.String name)
          Added to support IPv6 This method will handle only name with pattern host:port
static java.lang.String getHTML(javax.swing.table.TableModel model)
           
static java.lang.String getHTML(javax.swing.table.TableModel model, java.awt.Font font)
           
static java.lang.String getHTML(javax.swing.table.TableModel model, java.lang.String fontName, int fontSize)
           
static int getHTMLFontSize(java.awt.Font font)
           
static java.lang.String getNameWithProvider(java.lang.String name, java.lang.String providerName)
           
static int getPort(java.lang.String name, int defaultPort)
           
static java.lang.String[] getTableText(javax.swing.table.TableModel model)
           
static java.net.URI getURI(java.lang.String name)
           
static boolean hasWhiteSpaces(java.lang.String value)
           
static boolean isIPv6Format(java.lang.String name)
           
static boolean isLoopbackIp(java.lang.String host)
           
static boolean isWindows()
           
static void main(java.lang.String[] args)
           
static java.util.Map<java.lang.String,java.lang.String> newMapFromProps(java.util.Properties props)
           
static java.util.Properties newPropsFromMap(java.util.Map<java.lang.String,java.lang.String> params)
           
static short parseShortValue(java.lang.String value, short defaultVal)
           
static void sleepInHours(long hrs)
           
static void sleepInMillis(long millis)
           
static void sleepInMinutes(long mins)
           
static void sleepInSecs(long secs)
           
static java.io.InputStream tryFixReference(java.lang.Class claaz, java.lang.String reference)
           
static java.io.InputStream tryFixReference(java.lang.Class claaz, java.lang.String reference, java.util.Locale locale)
           

 

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

 

Field Detail

isConsoleLogEnabled

public static final boolean isConsoleLogEnabled

isScreenReaderEnabled

public static final boolean isScreenReaderEnabled

LOCALHOST

public static final java.lang.String LOCALHOST
See Also:
Constant Field Values

NAME_PROVIDER_SEPARATOR

public static final java.lang.String NAME_PROVIDER_SEPARATOR
See Also:
Constant Field Values

EMPTY

public static final java.lang.String EMPTY
See Also:
Constant Field Values

Constructor Detail

Utilities

public Utilities()

Method Detail

parseShortValue

public static short parseShortValue(java.lang.String value,
                                    short defaultVal)

getFontMetrics

public static java.awt.FontMetrics getFontMetrics(java.awt.Font font)

areClientServerOnSameMachine

public static boolean areClientServerOnSameMachine(java.lang.String remoteEASServer)
checks to determine if the eas server is on the same system as eas client

getHTML

public static java.lang.String getHTML(javax.swing.table.TableModel model)

getHTML

public static java.lang.String getHTML(javax.swing.table.TableModel model,
                                       java.awt.Font font)

getHTML

public static java.lang.String getHTML(javax.swing.table.TableModel model,
                                       java.lang.String fontName,
                                       int fontSize)

getHTMLFontSize

public static int getHTMLFontSize(java.awt.Font font)

getTableText

public static java.lang.String[] getTableText(javax.swing.table.TableModel model)

fixHelpUrlLink

public static java.net.URL fixHelpUrlLink(java.lang.String helpUrl)

tryFixReference

public static java.io.InputStream tryFixReference(java.lang.Class claaz,
                                                  java.lang.String reference)

tryFixReference

public static java.io.InputStream tryFixReference(java.lang.Class claaz,
                                                  java.lang.String reference,
                                                  java.util.Locale locale)

isIPv6Format

public static boolean isIPv6Format(java.lang.String name)

getURI

public static java.net.URI getURI(java.lang.String name)

getHost

public static java.lang.String getHost(java.lang.String name)
Added to support IPv6 This method will handle only name with pattern host:port
Parameters:
name - hostname and port of format host:port
Returns:
Object array of size 2, 0 - hostname, 1-port

getPort

public static int getPort(java.lang.String name,
                          int defaultPort)

isLoopbackIp

public static boolean isLoopbackIp(java.lang.String host)

getCanonicalHostName

public static java.lang.String getCanonicalHostName(java.lang.String host)

getNameWithProvider

public static java.lang.String getNameWithProvider(java.lang.String name,
                                                   java.lang.String providerName)

sleepInHours

public static void sleepInHours(long hrs)

sleepInMinutes

public static void sleepInMinutes(long mins)

sleepInSecs

public static void sleepInSecs(long secs)

sleepInMillis

public static void sleepInMillis(long millis)

newMapFromProps

public static java.util.Map<java.lang.String,java.lang.String> newMapFromProps(java.util.Properties props)

newPropsFromMap

public static java.util.Properties newPropsFromMap(java.util.Map<java.lang.String,java.lang.String> params)

isWindows

public static boolean isWindows()

main

public static void main(java.lang.String[] args)

getGeneratedString

public static java.lang.String getGeneratedString(int strlen)

hasWhiteSpaces

public static boolean hasWhiteSpaces(java.lang.String value)

eraseSpaces

public static java.lang.String eraseSpaces(java.lang.String string)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.