Package org.ini4j

Examples of org.ini4j.InvalidFileFormatException


        _config = value;
    }

    protected void parseError(String line, int lineNumber) throws InvalidFileFormatException
    {
        throw new InvalidFileFormatException("parse error (at line: " + lineNumber + "): " + line);
    }
View Full Code Here


        _config = value;
    }

    protected void parseError(String line, int lineNumber) throws InvalidFileFormatException
    {
        throw new InvalidFileFormatException("parse error (at line: " + lineNumber + "): " + line);
    }
View Full Code Here

 
 
  public static String[] splitMacroBodyIntoContentAndConfig(String configWithContent) throws InvalidFileFormatException {
    String[] splitted = configWithContent.split("\\[content\\]", 2);
    if (configWithContent == null || splitted.length < 2) {
      throw new InvalidFileFormatException("no [content] block found. Invalid format.");
    }
    return splitted;
  }
View Full Code Here

TOP

Related Classes of org.ini4j.InvalidFileFormatException

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.