Package kameleon.exception

Examples of kameleon.exception.InvalidConfigurationFileException


  @SuppressWarnings("unchecked")
  public static List<PlugInInfo> readList(String source)
      throws FileReadingException, InvalidConfigurationFileException {
    Object obj = IOObject.readObjectFromFile(source) ;
    if (!(obj instanceof List<?>)) {
      throw new InvalidConfigurationFileException(new File(source)) ;
    }// if
    List<?> readList = (List<?>) obj ;
    if (!readList.isEmpty() && !(readList.get(0) instanceof PlugInInfo)) {
      throw new InvalidConfigurationFileException(new File(source)) ;
    }// if
    return (List<PlugInInfo>) readList ;
  }// readList(String, List<PlugInInfo>)
View Full Code Here

TOP

Related Classes of kameleon.exception.InvalidConfigurationFileException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.