• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java XMLCheck类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.pentaho.di.core.xml.XMLCheck的典型用法代码示例。如果您正苦于以下问题:Java XMLCheck类的具体用法?Java XMLCheck怎么用?Java XMLCheck使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

XMLCheck类属于org.pentaho.di.core.xml包,在下文中一共展示了XMLCheck类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: CheckFile

点赞 2

import org.pentaho.di.core.xml.XMLCheck; //导入依赖的package包/类
private boolean CheckFile(FileObject file)
{
	boolean retval=false;
	try{
		retval=XMLCheck.isXMLFileWellFormed(file);
    } catch (Exception e) {
        logError(BaseMessages.getString(PKG, "JobXMLWellFormed.Log.ErrorCheckingFile",file.toString(),e.getMessage()));
    }
  
      return retval; 
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:12,
代码来源:JobEntryXMLWellFormed.java

示例2: isXMLWellFormed

点赞 2

import org.pentaho.di.core.xml.XMLCheck; //导入依赖的package包/类
/**
 * Checks an xml string is well formed.
 * @param metaA The ValueMetaInterface 
 *  @param dataA The value (filename) 
 * @return true if the file is well formed.
 */
public static boolean isXMLWellFormed(ValueMetaInterface metaA, Object dataA)
{
	if(dataA==null) return false;
	try {
		return XMLCheck.isXMLWellFormed(new ByteArrayInputStream(metaA.getBinary(dataA)));
	}catch(Exception e) {}
	return false;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:15,
代码来源:ValueDataUtil.java

示例3: isXMLWellFormed

点赞 2

import org.pentaho.di.core.xml.XMLCheck; //导入依赖的package包/类
/**
 * Checks an xml string is well formed.
 *
 * @param metaA
 *          The ValueMetaInterface
 * @param dataA
 *          The value (filename)
 * @return true if the file is well formed.
 */
public static boolean isXMLWellFormed( ValueMetaInterface metaA, Object dataA ) {
  if ( dataA == null ) {
    return false;
  }
  try {
    return XMLCheck.isXMLWellFormed( new ByteArrayInputStream( metaA.getBinary( dataA ) ) );
  } catch ( Exception e ) {
    // ignore - we'll return false below
  }
  return false;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:21,
代码来源:ValueDataUtil.java

示例4: CheckFile

点赞 2

import org.pentaho.di.core.xml.XMLCheck; //导入依赖的package包/类
private boolean CheckFile( FileObject file ) {
  boolean retval = false;
  try {
    retval = XMLCheck.isXMLFileWellFormed( file );
  } catch ( Exception e ) {
    logError( BaseMessages.getString( PKG, "JobXMLWellFormed.Log.ErrorCheckingFile", file.toString(), e.getMessage() ) );
  }

  return retval;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:11,
代码来源:JobEntryXMLWellFormed.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)