Java Code Examples for com.sun.tools.corba.se.idl.som.cff.FileLocator#locateLocaleSpecificFileInClassPath()

The following examples show how to use com.sun.tools.corba.se.idl.som.cff.FileLocator#locateLocaleSpecificFileInClassPath() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Util.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 2
Source File: Util.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 3
Source File: Util.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 4
Source File: Util.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 5
Source File: Util.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 6
Source File: Util.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 7
Source File: Util.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 8
Source File: Util.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 9
Source File: Util.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 10
Source File: Util.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 11
Source File: Util.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 12
Source File: Util.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 13
Source File: Util.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 14
Source File: Util.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}
 
Example 15
Source File: Util.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private static void readMessages ()
{
  messages = new Properties ();
  Enumeration fileList = msgFiles.elements ();
  DataInputStream stream;
  while (fileList.hasMoreElements ())
    try
    {
      stream = FileLocator.locateLocaleSpecificFileInClassPath ((String)fileList.nextElement ());
      messages.load (stream);
    }
    catch (IOException e)
    {
    }
  if (messages.size () == 0)
    messages.put (defaultKey, "Error reading Messages File.");
}
 
Example 16
Source File: Util.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/** Register a message file.  This file will be searched for
    in the CLASSPATH. */
public static void registerMessageFile (String filename)
{
  if (filename != null)
    if (messages == null)
      msgFiles.addElement (filename);
    else
      try
      {
        DataInputStream stream = FileLocator.locateLocaleSpecificFileInClassPath (filename);
        messages.load (stream);
      }
      catch (IOException e)
      {
      }
}