Package javax.tools.diagnostics

Examples of javax.tools.diagnostics.FactoryRegistry


   
  }

  public void testSimpleMixedCaseSuffixMatch() throws IOException {
   
    FactoryRegistry reg=new FactoryRegistry();
    String[] suffixes=new String[]{"suFFix"};
   
    reg.addFactory(new MockFactory(suffixes));
   
    File f=new File("testfile.suffix");
   
    Image result=reg.getImage(f);
    assertNotNull(result);
   
  }
View Full Code Here


   
  }
 
public void testTwoFactorySuffixMatch() throws IOException {
   
    FactoryRegistry reg=new FactoryRegistry();
   
    String[] suffixes=new String[]{"suFFix","other"};
    reg.addFactory(new MockFactory(suffixes));
   
    suffixes=new String[]{"rubarb","CustARD"};
    reg.addFactory(new MockFactory(suffixes));
   
    File f=new File("testfile.cusTard");
   
    Image result=reg.getImage(f);
    assertNotNull(result);
   
   
  }
View Full Code Here

  public void startRead() throws Exception{
    logr.log(JDILogger.LEVEL_VERBOSE, "Starting to read " + pathToCore); //$NON-NLS-1$

    File f = new File(pathToCore);
    try {
      FactoryRegistry registry=null;
      registry=FactoryRegistry.getDefaultRegistry();     
     
      image =  registry.getImage(f);
    } catch (IOException e) {
      logr.logError(JDILogger.LEVEL_QUIET, "Could not find/use required file(s)"); //$NON-NLS-1$
      e.printStackTrace(new PrintStream(logr.getErrorStream()));
      errorCode = 4;
      throw e;
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.FactoryRegistry

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.