net.md_5.bungee.config.YamlConfiguration类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中net.md_5.bungee.config.YamlConfiguration类的一些代码示例,展示了YamlConfiguration类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlConfiguration类的具体详情如下:
包路径:net.md_5.bungee.config.YamlConfiguration
类名称:YamlConfiguration

YamlConfiguration介绍

暂无

代码示例

代码示例来源:origin: SpigotMC/BungeeCord

@Override
public Configuration load(String string)
{
  return load( string, null );
}

代码示例来源:origin: SpigotMC/BungeeCord

@Override
public void save(Configuration config, File file) throws IOException
{
  try ( Writer writer = new OutputStreamWriter( new FileOutputStream( file ), Charsets.UTF_8 ) )
  {
    save( config, writer );
  }
}

代码示例来源:origin: SpigotMC/BungeeCord

@Override
public Configuration load(File file) throws IOException
{
  return load( file, null );
}

代码示例来源:origin: WaterfallMC/Waterfall-Old

@Override
public void save(Configuration config, File file) throws IOException
{
  try ( OutputStreamWriter writer = new OutputStreamWriter( new FileOutputStream( file ), UTF8 ) )
  {
    save( config, writer );
  }
}

代码示例来源:origin: SpigotMC/BungeeCord

@Override
public Configuration load(Reader reader)
{
  return load( reader, null );
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public void save(Configuration config, File file) throws IOException
{
  try (Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)))
  {
    save(config, writer);
  }
}

代码示例来源:origin: SpigotMC/BungeeCord

@Override
public Configuration load(InputStream is)
{
  return load( is, null );
}

代码示例来源:origin: SpigotMC/BungeeCord

@Override
public Configuration load(File file, Configuration defaults) throws IOException
{
  try ( FileInputStream is = new FileInputStream( file ) )
  {
    return load( is, defaults );
  }
}

代码示例来源:origin: WaterfallMC/Waterfall-Old

@Override
public Configuration load(String string)
{
  return load( string, null );
}

代码示例来源:origin: WaterfallMC/Waterfall-Old

@Override
public Configuration load(InputStream is)
{
  return load( is, null );
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public Configuration load(File file) throws IOException
{
  return load(file, null);
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public Configuration load(InputStream is)
{
  return load(is, null);
}

代码示例来源:origin: WaterfallMC/Waterfall-Old

@Override
public Configuration load(File file) throws IOException
{
  return load( file, null );
}

代码示例来源:origin: WaterfallMC/Waterfall-Old

@Override
public Configuration load(Reader reader)
{
  return load( reader, null );
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public Configuration load(Reader reader)
{
  return load(reader, null);
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public Configuration load(String string)
{
  return load(string, null);
}

代码示例来源:origin: WaterfallMC/Waterfall-Old

@Override
public Configuration load(File file, Configuration defaults) throws IOException
{
  try ( InputStreamReader reader = new InputStreamReader( new FileInputStream( file ), UTF8 ) )
  {
    return load( reader, defaults );
  }
}

代码示例来源:origin: Dytanic/CloudNet

@Override
public Configuration load(File file, Configuration defaults) throws IOException
{
  try (Reader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8)))
  {
    return load(reader, defaults);
  }
}

相关文章