当前位置: 首页>>代码示例>>Java>>正文


Java InfobrightNamedPipeLoader.DEFAULT_CHARSET属性代码示例

本文整理汇总了Java中com.infobright.io.InfobrightNamedPipeLoader.DEFAULT_CHARSET属性的典型用法代码示例。如果您正苦于以下问题:Java InfobrightNamedPipeLoader.DEFAULT_CHARSET属性的具体用法?Java InfobrightNamedPipeLoader.DEFAULT_CHARSET怎么用?Java InfobrightNamedPipeLoader.DEFAULT_CHARSET使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.infobright.io.InfobrightNamedPipeLoader的用法示例。


在下文中一共展示了InfobrightNamedPipeLoader.DEFAULT_CHARSET属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadXML

@Override
public void loadXML(Node stepnode, List<DatabaseMeta> databases, Map<String, Counter> counters)
    throws KettleXMLException {
  super.loadXML(stepnode, databases, counters);
  try {
    dataFormat = Enum.valueOf(DataFormat.class, XMLHandler.getTagValue(stepnode, TAG_DATA_FORMAT));
    agentPort = Integer.parseInt(Const.NVL(XMLHandler.getTagValue(stepnode, TAG_AGENT_PORT),
        Integer.toString(InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT)));
    String charsetName = XMLHandler.getTagValue(stepnode, TAG_CHARSET);
    charset = (charsetName == null ? InfobrightNamedPipeLoader.DEFAULT_CHARSET :
      Charset.forName(charsetName));
    debugFile = XMLHandler.getTagValue(stepnode, TAG_DEBUG_FILE);
  } catch(Exception e) {
    throw new KettleXMLException("Unable to load step info from XML", e);
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:16,代码来源:InfobrightLoaderMeta.java

示例2: readRep

@Override
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
  super.readRep(rep, id_step, databases, counters);
  try {
    dataFormat = Enum.valueOf(DataFormat.class, rep.getStepAttributeString(id_step, TAG_DATA_FORMAT));
    String agentPortStr = rep.getStepAttributeString(id_step, TAG_AGENT_PORT);
    if (agentPortStr == null) {
      agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
    } else {
      agentPort = Integer.parseInt(agentPortStr);
    }
    String charsetName = rep.getStepAttributeString(id_step, TAG_CHARSET);
    charset = (charsetName == null ? InfobrightNamedPipeLoader.DEFAULT_CHARSET :
      Charset.forName(charsetName));
    debugFile    = rep.getStepAttributeString(id_step, TAG_DEBUG_FILE);
  } catch (Exception e) {
    throw new KettleException("Unexpected error reading step information from the repository", e);
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:19,代码来源:InfobrightLoaderMeta.java

示例3: ok

protected void ok() {
  try {
    stepname = wStepname.getText(); // return value
    meta.setDatabaseMeta( transMeta.findDatabase(serverConnection.getText()) );
    meta.setSchemaName(targetSchemaText.getText());
    meta.setTablename(targetTableText.getText());
    meta.setDataFormat(DataFormat.valueForDisplayName(dataFormatSelect.getText()));
    String charsetName = charsetSelect.getText();
    Charset charset2 = ("".equals(charsetName) ?
        InfobrightNamedPipeLoader.DEFAULT_CHARSET :
        Charset.forName(charsetName));
    meta.setCharset(charset2);
    String agentPortStr = agentPortText.getText().trim();
    if ("".equals(agentPortStr)) {
      meta.setAgentPort(InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT);
    } else {
      meta.setAgentPort(Integer.parseInt(agentPortStr));
    }
    meta.setDebugFile(debugFileText.getText());
    dispose();
  } catch(Exception e) {
      new ErrorDialog(shell, BaseMessages.getString(PKG,
          "InfobrightLoaderDialog.Illegal.Dialog.Settings.Title"),
        BaseMessages.getString(PKG, "InfobrightLoaderDialog.Illegal.Dialog.Settings.Message"), e);
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:26,代码来源:InfobrightLoaderDialog.java

示例4: ok

protected void ok() {
  try {
    stepname = wStepname.getText(); // return value
    meta.setDatabaseMeta( transMeta.findDatabase(serverConnection.getText()) );
    meta.setSchemaName(targetSchemaText.getText());
    meta.setTableName(targetTableText.getText());
    meta.setDataFormat(DataFormat.valueForDisplayName(dataFormatSelect.getText()));
    String charsetName = charsetSelect.getText();
    Charset charset2 = ("".equals(charsetName) ?
        InfobrightNamedPipeLoader.DEFAULT_CHARSET :
        Charset.forName(charsetName));
    meta.setCharset(charset2);
    String agentPortStr = agentPortText.getText().trim();
    if ("".equals(agentPortStr)) {
      meta.setAgentPort(InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT);
    } else {
      meta.setAgentPort(Integer.parseInt(agentPortStr));
    }
    meta.setDebugFile(debugFileText.getText());
    dispose();
  } catch(Exception e) {
      new ErrorDialog(shell, BaseMessages.getString(PKG,
          "InfobrightLoaderDialog.Illegal.Dialog.Settings.Title"),
        BaseMessages.getString(PKG, "InfobrightLoaderDialog.Illegal.Dialog.Settings.Message"), e);
  }
}
 
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:26,代码来源:InfobrightLoaderDialog.java

示例5: loadXML

@Override
public void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ) throws KettleXMLException {
  super.loadXML( stepnode, databases, metaStore );
  try {
    dataFormat = Enum.valueOf( DataFormat.class, XMLHandler.getTagValue( stepnode, TAG_DATA_FORMAT ) );
    agentPort =
      Integer.parseInt( Const.NVL( XMLHandler.getTagValue( stepnode, TAG_AGENT_PORT ), Integer
        .toString( InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT ) ) );
    String charsetName = XMLHandler.getTagValue( stepnode, TAG_CHARSET );
    charset =
      ( charsetName == null ? InfobrightNamedPipeLoader.DEFAULT_CHARSET : Charset.forName( charsetName ) );
    debugFile = XMLHandler.getTagValue( stepnode, TAG_DEBUG_FILE );
  } catch ( Exception e ) {
    throw new KettleXMLException( "Unable to load step info from XML", e );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:InfobrightLoaderMeta.java

示例6: readRep

@Override
public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException {
  super.readRep( rep, metaStore, id_step, databases );
  try {
    dataFormat = Enum.valueOf( DataFormat.class, rep.getStepAttributeString( id_step, TAG_DATA_FORMAT ) );
    String agentPortStr = rep.getStepAttributeString( id_step, TAG_AGENT_PORT );
    if ( agentPortStr == null ) {
      agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
    } else {
      agentPort = Integer.parseInt( agentPortStr );
    }
    String charsetName = rep.getStepAttributeString( id_step, TAG_CHARSET );
    charset =
      ( charsetName == null ? InfobrightNamedPipeLoader.DEFAULT_CHARSET : Charset.forName( charsetName ) );
    debugFile = rep.getStepAttributeString( id_step, TAG_DEBUG_FILE );
  } catch ( Exception e ) {
    throw new KettleException( "Unexpected error reading step information from the repository", e );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:19,代码来源:InfobrightLoaderMeta.java

示例7: ok

protected void ok() {
  try {
    stepname = wStepname.getText(); // return value
    meta.setDatabaseMeta( transMeta.findDatabase( serverConnection.getText() ) );
    meta.setSchemaName( targetSchemaText.getText() );
    meta.setTableName( targetTableText.getText() );
    meta.setDataFormat( DataFormat.valueForDisplayName( dataFormatSelect.getText() ) );
    String charsetName = charsetSelect.getText();
    Charset charset2 =
      ( "".equals( charsetName ) ? InfobrightNamedPipeLoader.DEFAULT_CHARSET : Charset.forName( charsetName ) );
    meta.setCharset( charset2 );
    String agentPortStr = agentPortText.getText().trim();
    if ( "".equals( agentPortStr ) ) {
      meta.setAgentPort( InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT );
    } else {
      meta.setAgentPort( Integer.parseInt( agentPortStr ) );
    }
    meta.setDebugFile( debugFileText.getText() );
    dispose();
  } catch ( Exception e ) {
    new ErrorDialog(
      shell, BaseMessages.getString( PKG, "InfobrightLoaderDialog.Illegal.Dialog.Settings.Title" ),
      BaseMessages.getString( PKG, "InfobrightLoaderDialog.Illegal.Dialog.Settings.Message" ), e );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:25,代码来源:InfobrightLoaderDialog.java

示例8: setDefault

@Override
public void setDefault() {
  this.dataFormat = DataFormat.TXT_VARIABLE; // default for ICE
  // this.dataFormat = DataFormat.BINARY; // default for IEE
  this.agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
  this.charset = InfobrightNamedPipeLoader.DEFAULT_CHARSET;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:InfobrightLoaderMeta.java

示例9: setDefault

public void setDefault() {
  this.dataFormat = DataFormat.TXT_VARIABLE; // default for ICE
  // this.dataFormat = DataFormat.BINARY; // default for IEE
  this.agentPort = InfobrightNamedPipeLoader.AGENT_DEFAULT_PORT;
  this.charset = InfobrightNamedPipeLoader.DEFAULT_CHARSET;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:6,代码来源:InfobrightLoaderMeta.java


注:本文中的com.infobright.io.InfobrightNamedPipeLoader.DEFAULT_CHARSET属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。