Codota Logo
Platforms.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
com.izforge.izpack.util.Platforms

Best Java code snippets using com.izforge.izpack.util.Platforms.getName (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.codehaus.izpack/izpack-tools

/**
 * Returns the platform family name for the current operating system.
 * This may query the underlying OS to determine the platform name.
 *
 * @return the corresponding platform family name
 */
protected Name getCurrentOSName(String name)
{
  Name result = getName(name);
  if (result == Name.LINUX)
  {
    result = getLinuxName();
  }
  return result;
}
origin: org.codehaus.izpack/izpack-tools

/**
 * Returns the platform given the operating system name, architecture and version.
 *
 * @param name        the operating system name or symbolic name
 * @param arch        the operating system architecture, or symbolic architecture
 * @param version     the operating system version. May be {@code null}
 * @param javaVersion the java version
 * @return the corresponding platform
 */
public Platform getPlatform(String name, String arch, String version, String javaVersion)
{
  Platform result;
  Name pname = getName(name);
  Arch parch = getArch(arch);
  Platform match = findMatch(name, pname, parch, version);
  result = getPlatform(match, parch, version, javaVersion);
  return result;
}
origin: org.codehaus.izpack/izpack-util

Platform.Name name = platforms.getName(model.getName());
match = name.equals(platform.getName());
Platform.Name family = platforms.getName(model.getFamily());
match = platform.getName().isA(family);
com.izforge.izpack.utilPlatformsgetName

Javadoc

Returns the platform family name for the specified operating system name.

Popular methods of Platforms

  • getCurrentPlatform
    Returns the current platform given the operating system name, architecture and version. This may que
  • <init>
  • getArch
    Returns the platform family name given the operating system or symbolic name.
  • getPlatform
    Returns the platform given the operating system name, architecture and version.
  • equals
    Compares two strings for equality.
  • exists
    Determines if the specified path exists.
  • findMatch
    Attempts to find a platform that matches the platform name, architecture and version.
  • getCurrentOSName
    Returns the platform family name for the current operating system. This may query the underlying OS
  • getLinuxName
    Returns the Linux platform family name.
  • getReleasePath
    Returns the release info file path, for Linux distributions.
  • getText
    Returns the text from the specified file.
  • search
    Searches text for the specified string.
  • getText,
  • search

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Menu (java.awt)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now