source: javadoc/genius/core/SerializeHandling.html@ 1

Last change on this file since 1 was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 10.7 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc (1.8.0_112) on Thu Jun 21 12:05:56 CEST 2018 -->
6<title>SerializeHandling (Genius Core Documentation)</title>
7<meta name="date" content="2018-06-21">
8<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
9<script type="text/javascript" src="../../script.js"></script>
10</head>
11<body>
12<script type="text/javascript"><!--
13 try {
14 if (location.href.indexOf('is-external=true') == -1) {
15 parent.document.title="SerializeHandling (Genius Core Documentation)";
16 }
17 }
18 catch(err) {
19 }
20//-->
21var methods = {"i0":9,"i1":9};
22var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
23var altColor = "altColor";
24var rowColor = "rowColor";
25var tableTab = "tableTab";
26var activeTableTab = "activeTableTab";
27</script>
28<noscript>
29<div>JavaScript is disabled on your browser.</div>
30</noscript>
31<!-- ========= START OF TOP NAVBAR ======= -->
32<div class="topNav"><a name="navbar.top">
33<!-- -->
34</a>
35<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36<a name="navbar.top.firstrow">
37<!-- -->
38</a>
39<ul class="navList" title="Navigation">
40<li><a href="../../overview-summary.html">Overview</a></li>
41<li><a href="package-summary.html">Package</a></li>
42<li class="navBarCell1Rev">Class</li>
43<li><a href="class-use/SerializeHandling.html">Use</a></li>
44<li><a href="package-tree.html">Tree</a></li>
45<li><a href="../../deprecated-list.html">Deprecated</a></li>
46<li><a href="../../index-all.html">Index</a></li>
47<li><a href="../../help-doc.html">Help</a></li>
48</ul>
49</div>
50<div class="subNav">
51<ul class="navList">
52<li><a href="../../genius/core/PausableContinuousTimeline.html" title="class in genius.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53<li><a href="../../genius/core/StrategyParameters.html" title="class in genius.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
54</ul>
55<ul class="navList">
56<li><a href="../../index.html?genius/core/SerializeHandling.html" target="_top">Frames</a></li>
57<li><a href="SerializeHandling.html" target="_top">No&nbsp;Frames</a></li>
58</ul>
59<ul class="navList" id="allclasses_navbar_top">
60<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
61</ul>
62<div>
63<script type="text/javascript"><!--
64 allClassesLink = document.getElementById("allclasses_navbar_top");
65 if(window==top) {
66 allClassesLink.style.display = "block";
67 }
68 else {
69 allClassesLink.style.display = "none";
70 }
71 //-->
72</script>
73</div>
74<div>
75<ul class="subNavList">
76<li>Summary:&nbsp;</li>
77<li>Nested&nbsp;|&nbsp;</li>
78<li>Field&nbsp;|&nbsp;</li>
79<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
80<li><a href="#method.summary">Method</a></li>
81</ul>
82<ul class="subNavList">
83<li>Detail:&nbsp;</li>
84<li>Field&nbsp;|&nbsp;</li>
85<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
86<li><a href="#method.detail">Method</a></li>
87</ul>
88</div>
89<a name="skip.navbar.top">
90<!-- -->
91</a></div>
92<!-- ========= END OF TOP NAVBAR ========= -->
93<!-- ======== START OF CLASS DATA ======== -->
94<div class="header">
95<div class="subTitle">genius.core</div>
96<h2 title="Class SerializeHandling" class="title">Class SerializeHandling</h2>
97</div>
98<div class="contentContainer">
99<ul class="inheritance">
100<li>java.lang.Object</li>
101<li>
102<ul class="inheritance">
103<li>genius.core.SerializeHandling</li>
104</ul>
105</li>
106</ul>
107<div class="description">
108<ul class="blockList">
109<li class="blockList">
110<hr>
111<br>
112<pre>public class <span class="typeNameLabel">SerializeHandling</span>
113extends java.lang.Object</pre>
114<div class="block">This is a utility class to handle writing and
115 reading <code>Serializable</code> objects into/from a file.</div>
116<dl>
117<dt><span class="simpleTagLabel">Author:</span></dt>
118<dd>Samanta H.</dd>
119</dl>
120</li>
121</ul>
122</div>
123<div class="summary">
124<ul class="blockList">
125<li class="blockList">
126<!-- ======== CONSTRUCTOR SUMMARY ======== -->
127<ul class="blockList">
128<li class="blockList"><a name="constructor.summary">
129<!-- -->
130</a>
131<h3>Constructor Summary</h3>
132<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
133<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
134<tr>
135<th class="colOne" scope="col">Constructor and Description</th>
136</tr>
137<tr class="altColor">
138<td class="colOne"><code><span class="memberNameLink"><a href="../../genius/core/SerializeHandling.html#SerializeHandling--">SerializeHandling</a></span>()</code>&nbsp;</td>
139</tr>
140</table>
141</li>
142</ul>
143<!-- ========== METHOD SUMMARY =========== -->
144<ul class="blockList">
145<li class="blockList"><a name="method.summary">
146<!-- -->
147</a>
148<h3>Method Summary</h3>
149<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
150<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
151<tr>
152<th class="colFirst" scope="col">Modifier and Type</th>
153<th class="colLast" scope="col">Method and Description</th>
154</tr>
155<tr id="i0" class="altColor">
156<td class="colFirst"><code>static java.io.Serializable</code></td>
157<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/SerializeHandling.html#readFromDisc-java.lang.String-">readFromDisc</a></span>(java.lang.String&nbsp;path)</code>
158<div class="block">Reads an Object from the "path" in the disc.</div>
159</td>
160</tr>
161<tr id="i1" class="rowColor">
162<td class="colFirst"><code>static boolean</code></td>
163<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/SerializeHandling.html#writeToDisc-java.io.Serializable-java.lang.String-">writeToDisc</a></span>(java.io.Serializable&nbsp;data,
164 java.lang.String&nbsp;path)</code>
165<div class="block">Writes the data into disc, in a new file under the path given.</div>
166</td>
167</tr>
168</table>
169<ul class="blockList">
170<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
171<!-- -->
172</a>
173<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
174<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
175</ul>
176</li>
177</ul>
178</li>
179</ul>
180</div>
181<div class="details">
182<ul class="blockList">
183<li class="blockList">
184<!-- ========= CONSTRUCTOR DETAIL ======== -->
185<ul class="blockList">
186<li class="blockList"><a name="constructor.detail">
187<!-- -->
188</a>
189<h3>Constructor Detail</h3>
190<a name="SerializeHandling--">
191<!-- -->
192</a>
193<ul class="blockListLast">
194<li class="blockList">
195<h4>SerializeHandling</h4>
196<pre>public&nbsp;SerializeHandling()</pre>
197</li>
198</ul>
199</li>
200</ul>
201<!-- ============ METHOD DETAIL ========== -->
202<ul class="blockList">
203<li class="blockList"><a name="method.detail">
204<!-- -->
205</a>
206<h3>Method Detail</h3>
207<a name="writeToDisc-java.io.Serializable-java.lang.String-">
208<!-- -->
209</a>
210<ul class="blockList">
211<li class="blockList">
212<h4>writeToDisc</h4>
213<pre>public static&nbsp;boolean&nbsp;writeToDisc(java.io.Serializable&nbsp;data,
214 java.lang.String&nbsp;path)</pre>
215<div class="block">Writes the data into disc, in a new file under the path given.</div>
216<dl>
217<dt><span class="paramLabel">Parameters:</span></dt>
218<dd><code>data</code> - the object to be saved into a new file.</dd>
219<dd><code>path</code> - the final path (including the name of the file which will
220 be created).</dd>
221<dt><span class="returnLabel">Returns:</span></dt>
222<dd>true if writing the object into the path was successful.
223 false otherwise.</dd>
224</dl>
225</li>
226</ul>
227<a name="readFromDisc-java.lang.String-">
228<!-- -->
229</a>
230<ul class="blockListLast">
231<li class="blockList">
232<h4>readFromDisc</h4>
233<pre>public static&nbsp;java.io.Serializable&nbsp;readFromDisc(java.lang.String&nbsp;path)</pre>
234<div class="block">Reads an Object from the "path" in the disc.</div>
235<dl>
236<dt><span class="paramLabel">Parameters:</span></dt>
237<dd><code>path</code> - the path where the object is saved in the disc.</dd>
238<dt><span class="returnLabel">Returns:</span></dt>
239<dd>the object saved in path.</dd>
240</dl>
241</li>
242</ul>
243</li>
244</ul>
245</li>
246</ul>
247</div>
248</div>
249<!-- ========= END OF CLASS DATA ========= -->
250<!-- ======= START OF BOTTOM NAVBAR ====== -->
251<div class="bottomNav"><a name="navbar.bottom">
252<!-- -->
253</a>
254<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
255<a name="navbar.bottom.firstrow">
256<!-- -->
257</a>
258<ul class="navList" title="Navigation">
259<li><a href="../../overview-summary.html">Overview</a></li>
260<li><a href="package-summary.html">Package</a></li>
261<li class="navBarCell1Rev">Class</li>
262<li><a href="class-use/SerializeHandling.html">Use</a></li>
263<li><a href="package-tree.html">Tree</a></li>
264<li><a href="../../deprecated-list.html">Deprecated</a></li>
265<li><a href="../../index-all.html">Index</a></li>
266<li><a href="../../help-doc.html">Help</a></li>
267</ul>
268</div>
269<div class="subNav">
270<ul class="navList">
271<li><a href="../../genius/core/PausableContinuousTimeline.html" title="class in genius.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
272<li><a href="../../genius/core/StrategyParameters.html" title="class in genius.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
273</ul>
274<ul class="navList">
275<li><a href="../../index.html?genius/core/SerializeHandling.html" target="_top">Frames</a></li>
276<li><a href="SerializeHandling.html" target="_top">No&nbsp;Frames</a></li>
277</ul>
278<ul class="navList" id="allclasses_navbar_bottom">
279<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
280</ul>
281<div>
282<script type="text/javascript"><!--
283 allClassesLink = document.getElementById("allclasses_navbar_bottom");
284 if(window==top) {
285 allClassesLink.style.display = "block";
286 }
287 else {
288 allClassesLink.style.display = "none";
289 }
290 //-->
291</script>
292</div>
293<div>
294<ul class="subNavList">
295<li>Summary:&nbsp;</li>
296<li>Nested&nbsp;|&nbsp;</li>
297<li>Field&nbsp;|&nbsp;</li>
298<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
299<li><a href="#method.summary">Method</a></li>
300</ul>
301<ul class="subNavList">
302<li>Detail:&nbsp;</li>
303<li>Field&nbsp;|&nbsp;</li>
304<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
305<li><a href="#method.detail">Method</a></li>
306</ul>
307</div>
308<a name="skip.navbar.bottom">
309<!-- -->
310</a></div>
311<!-- ======== END OF BOTTOM NAVBAR ======= -->
312</body>
313</html>
Note: See TracBrowser for help on using the repository browser.