source: trunk/doc/omq/common/util/Serializers/JavaImp.html

Last change on this file was 85, checked in by stoda, 11 years ago

Javadocs updated

File size: 14.8 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="es">
4<head>
5<!-- Generated by javadoc (version 1.7.0_25) on Wed Jul 10 13:13:17 CEST 2013 -->
6<title>JavaImp</title>
7<meta name="date" content="2013-07-10">
8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
9</head>
10<body>
11<script type="text/javascript"><!--
12    if (location.href.indexOf('is-external=true') == -1) {
13        parent.document.title="JavaImp";
14    }
15//-->
16</script>
17<noscript>
18<div>JavaScript is disabled on your browser.</div>
19</noscript>
20<!-- ========= START OF TOP NAVBAR ======= -->
21<div class="topNav"><a name="navbar_top">
22<!--   -->
23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24<!--   -->
25</a>
26<ul class="navList" title="Navigation">
27<li><a href="../../../../overview-summary.html">Overview</a></li>
28<li><a href="package-summary.html">Package</a></li>
29<li class="navBarCell1Rev">Class</li>
30<li><a href="class-use/JavaImp.html">Use</a></li>
31<li><a href="package-tree.html">Tree</a></li>
32<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
33<li><a href="../../../../index-files/index-1.html">Index</a></li>
34<li><a href="../../../../help-doc.html">Help</a></li>
35</ul>
36</div>
37<div class="subNav">
38<ul class="navList">
39<li><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../omq/common/util/Serializers/KryoImp.html" title="class in omq.common.util.Serializers"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?omq/common/util/Serializers/JavaImp.html" target="_top">Frames</a></li>
44<li><a href="JavaImp.html" target="_top">No Frames</a></li>
45</ul>
46<ul class="navList" id="allclasses_navbar_top">
47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
48</ul>
49<div>
50<script type="text/javascript"><!--
51  allClassesLink = document.getElementById("allclasses_navbar_top");
52  if(window==top) {
53    allClassesLink.style.display = "block";
54  }
55  else {
56    allClassesLink.style.display = "none";
57  }
58  //-->
59</script>
60</div>
61<div>
62<ul class="subNavList">
63<li>Summary:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li>Field&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li>Field&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73<li><a href="#method_detail">Method</a></li>
74</ul>
75</div>
76<a name="skip-navbar_top">
77<!--   -->
78</a></div>
79<!-- ========= END OF TOP NAVBAR ========= -->
80<!-- ======== START OF CLASS DATA ======== -->
81<div class="header">
82<div class="subTitle">omq.common.util.Serializers</div>
83<h2 title="Class JavaImp" class="title">Class JavaImp</h2>
84</div>
85<div class="contentContainer">
86<ul class="inheritance">
87<li>java.lang.Object</li>
88<li>
89<ul class="inheritance">
90<li>omq.common.util.Serializers.JavaImp</li>
91</ul>
92</li>
93</ul>
94<div class="description">
95<ul class="blockList">
96<li class="blockList">
97<dl>
98<dt>All Implemented Interfaces:</dt>
99<dd><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></dd>
100</dl>
101<hr>
102<br>
103<pre>public class <span class="strong">JavaImp</span>
104extends java.lang.Object
105implements <a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></pre>
106<div class="block">Java serialize implementation. It uses the default java serialization.</div>
107<dl><dt><span class="strong">Author:</span></dt>
108  <dd>Sergi Toda <sergi.toda@estudiants.urv.cat></dd></dl>
109</li>
110</ul>
111</div>
112<div class="summary">
113<ul class="blockList">
114<li class="blockList">
115<!-- ======== CONSTRUCTOR SUMMARY ======== -->
116<ul class="blockList">
117<li class="blockList"><a name="constructor_summary">
118<!--   -->
119</a>
120<h3>Constructor Summary</h3>
121<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
122<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
123<tr>
124<th class="colOne" scope="col">Constructor and Description</th>
125</tr>
126<tr class="altColor">
127<td class="colOne"><code><strong><a href="../../../../omq/common/util/Serializers/JavaImp.html#JavaImp()">JavaImp</a></strong>()</code>&nbsp;</td>
128</tr>
129</table>
130</li>
131</ul>
132<!-- ========== METHOD SUMMARY =========== -->
133<ul class="blockList">
134<li class="blockList"><a name="method_summary">
135<!--   -->
136</a>
137<h3>Method Summary</h3>
138<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
139<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
140<tr>
141<th class="colFirst" scope="col">Modifier and Type</th>
142<th class="colLast" scope="col">Method and Description</th>
143</tr>
144<tr class="altColor">
145<td class="colFirst"><code>java.lang.Object</code></td>
146<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/JavaImp.html#deserializeObject(byte[])">deserializeObject</a></strong>(byte[]&nbsp;bytes)</code>&nbsp;</td>
147</tr>
148<tr class="rowColor">
149<td class="colFirst"><code><a href="../../../../omq/common/message/Request.html" title="class in omq.common.message">Request</a></code></td>
150<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/JavaImp.html#deserializeRequest(byte[], omq.server.RemoteObject)">deserializeRequest</a></strong>(byte[]&nbsp;bytes,
151                  <a href="../../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a>&nbsp;obj)</code>
152<div class="block">Deserialize a Request</div>
153</td>
154</tr>
155<tr class="altColor">
156<td class="colFirst"><code><a href="../../../../omq/common/message/Response.html" title="class in omq.common.message">Response</a></code></td>
157<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/JavaImp.html#deserializeResponse(byte[], java.lang.Class)">deserializeResponse</a></strong>(byte[]&nbsp;bytes,
158                   java.lang.Class&lt;?&gt;&nbsp;type)</code>
159<div class="block">Deserialize a Response</div>
160</td>
161</tr>
162<tr class="rowColor">
163<td class="colFirst"><code>byte[]</code></td>
164<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/JavaImp.html#serialize(java.lang.Object)">serialize</a></strong>(java.lang.Object&nbsp;obj)</code>
165<div class="block">Serialize</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>equals, 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="JavaImp()">
191<!--   -->
192</a>
193<ul class="blockListLast">
194<li class="blockList">
195<h4>JavaImp</h4>
196<pre>public&nbsp;JavaImp()</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="serialize(java.lang.Object)">
208<!--   -->
209</a>
210<ul class="blockList">
211<li class="blockList">
212<h4>serialize</h4>
213<pre>public&nbsp;byte[]&nbsp;serialize(java.lang.Object&nbsp;obj)
214                 throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
215<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html#serialize(java.lang.Object)">ISerializer</a></code></strong></div>
216<div class="block">Serialize</div>
217<dl>
218<dt><strong>Specified by:</strong></dt>
219<dd><code><a href="../../../../omq/common/util/Serializers/ISerializer.html#serialize(java.lang.Object)">serialize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></code></dd>
220<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - - object to serialize</dd>
221<dt><span class="strong">Returns:</span></dt><dd>objectSerialized</dd>
222<dt><span class="strong">Throws:</span></dt>
223<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
224</li>
225</ul>
226<a name="deserializeRequest(byte[], omq.server.RemoteObject)">
227<!--   -->
228</a>
229<ul class="blockList">
230<li class="blockList">
231<h4>deserializeRequest</h4>
232<pre>public&nbsp;<a href="../../../../omq/common/message/Request.html" title="class in omq.common.message">Request</a>&nbsp;deserializeRequest(byte[]&nbsp;bytes,
233                         <a href="../../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a>&nbsp;obj)
234                           throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
235<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeRequest(byte[], omq.server.RemoteObject)">ISerializer</a></code></strong></div>
236<div class="block">Deserialize a Request</div>
237<dl>
238<dt><strong>Specified by:</strong></dt>
239<dd><code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeRequest(byte[], omq.server.RemoteObject)">deserializeRequest</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></code></dd>
240<dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - - serialized request</dd><dd><code>obj</code> - - remoteObject which is receiving requests</dd>
241<dt><span class="strong">Returns:</span></dt><dd>request</dd>
242<dt><span class="strong">Throws:</span></dt>
243<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
244</li>
245</ul>
246<a name="deserializeResponse(byte[], java.lang.Class)">
247<!--   -->
248</a>
249<ul class="blockList">
250<li class="blockList">
251<h4>deserializeResponse</h4>
252<pre>public&nbsp;<a href="../../../../omq/common/message/Response.html" title="class in omq.common.message">Response</a>&nbsp;deserializeResponse(byte[]&nbsp;bytes,
253                           java.lang.Class&lt;?&gt;&nbsp;type)
254                             throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
255<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeResponse(byte[], java.lang.Class)">ISerializer</a></code></strong></div>
256<div class="block">Deserialize a Response</div>
257<dl>
258<dt><strong>Specified by:</strong></dt>
259<dd><code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeResponse(byte[], java.lang.Class)">deserializeResponse</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></code></dd>
260<dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - serialized response</dd><dd><code>type</code> - - return type expected</dd>
261<dt><span class="strong">Returns:</span></dt><dd>response</dd>
262<dt><span class="strong">Throws:</span></dt>
263<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
264</li>
265</ul>
266<a name="deserializeObject(byte[])">
267<!--   -->
268</a>
269<ul class="blockListLast">
270<li class="blockList">
271<h4>deserializeObject</h4>
272<pre>public&nbsp;java.lang.Object&nbsp;deserializeObject(byte[]&nbsp;bytes)
273                                   throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
274<dl><dt><span class="strong">Throws:</span></dt>
275<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code></dd></dl>
276</li>
277</ul>
278</li>
279</ul>
280</li>
281</ul>
282</div>
283</div>
284<!-- ========= END OF CLASS DATA ========= -->
285<!-- ======= START OF BOTTOM NAVBAR ====== -->
286<div class="bottomNav"><a name="navbar_bottom">
287<!--   -->
288</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
289<!--   -->
290</a>
291<ul class="navList" title="Navigation">
292<li><a href="../../../../overview-summary.html">Overview</a></li>
293<li><a href="package-summary.html">Package</a></li>
294<li class="navBarCell1Rev">Class</li>
295<li><a href="class-use/JavaImp.html">Use</a></li>
296<li><a href="package-tree.html">Tree</a></li>
297<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
298<li><a href="../../../../index-files/index-1.html">Index</a></li>
299<li><a href="../../../../help-doc.html">Help</a></li>
300</ul>
301</div>
302<div class="subNav">
303<ul class="navList">
304<li><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers"><span class="strong">Prev Class</span></a></li>
305<li><a href="../../../../omq/common/util/Serializers/KryoImp.html" title="class in omq.common.util.Serializers"><span class="strong">Next Class</span></a></li>
306</ul>
307<ul class="navList">
308<li><a href="../../../../index.html?omq/common/util/Serializers/JavaImp.html" target="_top">Frames</a></li>
309<li><a href="JavaImp.html" target="_top">No Frames</a></li>
310</ul>
311<ul class="navList" id="allclasses_navbar_bottom">
312<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
313</ul>
314<div>
315<script type="text/javascript"><!--
316  allClassesLink = document.getElementById("allclasses_navbar_bottom");
317  if(window==top) {
318    allClassesLink.style.display = "block";
319  }
320  else {
321    allClassesLink.style.display = "none";
322  }
323  //-->
324</script>
325</div>
326<div>
327<ul class="subNavList">
328<li>Summary:&nbsp;</li>
329<li>Nested&nbsp;|&nbsp;</li>
330<li>Field&nbsp;|&nbsp;</li>
331<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
332<li><a href="#method_summary">Method</a></li>
333</ul>
334<ul class="subNavList">
335<li>Detail:&nbsp;</li>
336<li>Field&nbsp;|&nbsp;</li>
337<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
338<li><a href="#method_detail">Method</a></li>
339</ul>
340</div>
341<a name="skip-navbar_bottom">
342<!--   -->
343</a></div>
344<!-- ======== END OF BOTTOM NAVBAR ======= -->
345</body>
346</html>
Note: See TracBrowser for help on using the repository browser.