本文整理汇总了Java中javax.print.DocFlavor.URL类的典型用法代码示例。如果您正苦于以下问题:Java URL类的具体用法?Java URL怎么用?Java URL使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
URL类属于javax.print.DocFlavor包,在下文中一共展示了URL类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getJksPath
import javax.print.DocFlavor.URL; //导入依赖的package包/类
public String getJksPath() {
// use the tesing jks we provided by default
java.net.URL location = this.getClass().getResource("/ftpserver.jks");
if (location != null){
jksPath = location.getPath();
LOGGER.warn("*** OpenSDI is using the default keystore for the FTP server ***");
}
// otherwise look for a jks file in the config folder
else{
if(jksPath == null && applicationContext != null){
OpenSDIManagerConfig cf = (OpenSDIManagerConfig)applicationContext.getBean("baseConfig");
if(cf != null){
File confDir = cf.getConfigDir();
jksPath = new File(confDir,"ftpserver.jks").getAbsolutePath();
}
}
}
return jksPath;
}
示例2: initialize
import javax.print.DocFlavor.URL; //导入依赖的package包/类
@Override
public void initialize(java.net.URL location, ResourceBundle resources) {
tbcChefe.setCellValueFactory(new PropertyValueFactory<>("chefe"));
tbcNome.setCellValueFactory(new PropertyValueFactory<>("nome"));
tbcSigla.setCellValueFactory(new PropertyValueFactory<>("sigla"));
chbChefeDep.setItems(FXCollections.observableArrayList(MockServidorDAO.getInstance().buscarTodosServidores()));
inicializarForm();
}
示例3: installProcessCode
import javax.print.DocFlavor.URL; //导入依赖的package包/类
@Override
public void installProcessCode(String processURI, URL codePackage, boolean replace)
{
// TODO Auto-generated method stub
}
示例4: installProcessCode
import javax.print.DocFlavor.URL; //导入依赖的package包/类
/**
* Installs a process code package (jar file) from the specified URL for the process URI
* @param processURI URI of process type that this code should be used for
* @param codePackage URL of jar containing classes necessary to run the specified method
* @param replace if true, old code associated to the same URI will be destroyed
*/
public void installProcessCode(String processURI, URL codePackage, boolean replace);