mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
324 lines
11 KiB
HTML
324 lines
11 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="zh">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_15) on Wed Jan 01 21:27:24 CST 2014 -->
|
|
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
|
|
<title>Configuration</title>
|
|
<meta name="date" content="2014-01-01">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Configuration";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>您的浏览器已禁用 JavaScript。</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="跳过导航链接"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="导航">
|
|
<li><a href="../../../../overview-summary.html">概览</a></li>
|
|
<li><a href="package-summary.html">程序包</a></li>
|
|
<li class="navBarCell1Rev">类</li>
|
|
<li><a href="class-use/Configuration.html">使用</a></li>
|
|
<li><a href="package-tree.html">树</a></li>
|
|
<li><a href="../../../../deprecated-list.html">已过时</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">索引</a></li>
|
|
<li><a href="../../../../help-doc.html">帮助</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>上一个类</li>
|
|
<li><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/DoneListener.html" title="org.jackhuang.hellominecraftlauncher.apis中的接口"><span class="strong">下一个类</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?org/jackhuang/hellominecraftlauncher/apis/Configuration.html" target="_top">框架</a></li>
|
|
<li><a href="Configuration.html" target="_top">无框架</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>概要: </li>
|
|
<li>嵌套 | </li>
|
|
<li>字段 | </li>
|
|
<li><a href="#constructor_summary">构造器</a> | </li>
|
|
<li><a href="#method_summary">方法</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>详细资料: </li>
|
|
<li>字段 | </li>
|
|
<li><a href="#constructor_detail">构造器</a> | </li>
|
|
<li><a href="#method_detail">方法</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">org.jackhuang.hellominecraftlauncher.apis</div>
|
|
<h2 title="类 Configuration" class="title">类 Configuration<T></h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>org.jackhuang.hellominecraftlauncher.apis.Configuration<T></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">Configuration<T></span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">此类用于保存配置</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>构造器概要</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释">
|
|
<caption><span>构造器</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">构造器和说明</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html#Configuration(java.lang.String)">Configuration</a></strong>(java.lang.String file)</code>
|
|
<div class="block">构造函数</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>方法概要</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
|
|
<caption><span>方法</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">限定符和类型</th>
|
|
<th class="colLast" scope="col">方法和说明</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html" title="Configuration中的类型参数">T</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html#get()">get</a></strong>()</code>
|
|
<div class="block">获取到的设置对象</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html#load(java.lang.Class)">load</a></strong>(java.lang.Class<<a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html" title="Configuration中的类型参数">T</a>> c)</code>
|
|
<div class="block">从提供的配置文件读取配置</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html#save()">save</a></strong>()</code>
|
|
<div class="block">用Json的形式保存存储在configuration里的data</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html#set(T)">set</a></strong>(<a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html" title="Configuration中的类型参数">T</a> data)</code>
|
|
<div class="block">设置设置对象</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>从类继承的方法 java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>构造器详细资料</h3>
|
|
<a name="Configuration(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Configuration</h4>
|
|
<pre>public Configuration(java.lang.String file)</pre>
|
|
<div class="block">构造函数</div>
|
|
<dl><dt><span class="strong">参数:</span></dt><dd><code>file</code> - 配置文件地址</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>方法详细资料</h3>
|
|
<a name="get()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>get</h4>
|
|
<pre>public <a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html" title="Configuration中的类型参数">T</a> get()</pre>
|
|
<div class="block">获取到的设置对象</div>
|
|
<dl><dt><span class="strong">返回:</span></dt><dd>设置对象</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="set(java.lang.Object)">
|
|
<!-- -->
|
|
</a><a name="set(T)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>set</h4>
|
|
<pre>public void set(<a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html" title="Configuration中的类型参数">T</a> data)</pre>
|
|
<div class="block">设置设置对象</div>
|
|
<dl><dt><span class="strong">参数:</span></dt><dd><code>data</code> - 设置对象</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="load(java.lang.Class)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>load</h4>
|
|
<pre>public void load(java.lang.Class<<a href="../../../../org/jackhuang/hellominecraftlauncher/apis/Configuration.html" title="Configuration中的类型参数">T</a>> c)</pre>
|
|
<div class="block">从提供的配置文件读取配置</div>
|
|
<dl><dt><span class="strong">参数:</span></dt><dd><code>c</code> - T的class</dd>
|
|
<dt><span class="strong">抛出:</span></dt>
|
|
<dd><code>java.io.FileNotFoundException</code></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="save()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>save</h4>
|
|
<pre>public void save()
|
|
throws java.io.IOException</pre>
|
|
<div class="block">用Json的形式保存存储在configuration里的data</div>
|
|
<dl><dt><span class="strong">抛出:</span></dt>
|
|
<dd><code>java.io.IOException</code></dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="跳过导航链接"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="导航">
|
|
<li><a href="../../../../overview-summary.html">概览</a></li>
|
|
<li><a href="package-summary.html">程序包</a></li>
|
|
<li class="navBarCell1Rev">类</li>
|
|
<li><a href="class-use/Configuration.html">使用</a></li>
|
|
<li><a href="package-tree.html">树</a></li>
|
|
<li><a href="../../../../deprecated-list.html">已过时</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">索引</a></li>
|
|
<li><a href="../../../../help-doc.html">帮助</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>上一个类</li>
|
|
<li><a href="../../../../org/jackhuang/hellominecraftlauncher/apis/DoneListener.html" title="org.jackhuang.hellominecraftlauncher.apis中的接口"><span class="strong">下一个类</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?org/jackhuang/hellominecraftlauncher/apis/Configuration.html" target="_top">框架</a></li>
|
|
<li><a href="Configuration.html" target="_top">无框架</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>概要: </li>
|
|
<li>嵌套 | </li>
|
|
<li>字段 | </li>
|
|
<li><a href="#constructor_summary">构造器</a> | </li>
|
|
<li><a href="#method_summary">方法</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>详细资料: </li>
|
|
<li>字段 | </li>
|
|
<li><a href="#constructor_detail">构造器</a> | </li>
|
|
<li><a href="#method_detail">方法</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|