source: trunk/doc/omq/common/util/Serializers/GsonImp.html @ 104

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

Javadocs updated

File size: 13.7 KB
RevLine 
[83]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>
[85]5<!-- Generated by javadoc (version 1.7.0_25) on Wed Jul 10 13:13:17 CEST 2013 -->
[83]6<title>GsonImp</title>
[85]7<meta name="date" content="2013-07-10">
[83]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="GsonImp";
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/GsonImp.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>Prev Class</li>
40<li><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface 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/GsonImp.html" target="_top">Frames</a></li>
44<li><a href="GsonImp.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 GsonImp" class="title">Class GsonImp</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.GsonImp</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">GsonImp</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">Json serialize implementation. It uses the Gson libraries.</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/GsonImp.html#GsonImp()">GsonImp</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><a href="../../../../omq/common/message/Request.html" title="class in omq.common.message">Request</a></code></td>
146<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/GsonImp.html#deserializeRequest(byte[], omq.server.RemoteObject)">deserializeRequest</a></strong>(byte[]&nbsp;bytes,
147                  <a href="../../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a>&nbsp;obj)</code>
148<div class="block">Deserialize a Request</div>
149</td>
150</tr>
151<tr class="rowColor">
152<td class="colFirst"><code><a href="../../../../omq/common/message/Response.html" title="class in omq.common.message">Response</a></code></td>
153<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/GsonImp.html#deserializeResponse(byte[], java.lang.Class)">deserializeResponse</a></strong>(byte[]&nbsp;bytes,
154                   java.lang.Class&lt;?&gt;&nbsp;type)</code>
155<div class="block">Deserialize a Response</div>
156</td>
157</tr>
158<tr class="altColor">
159<td class="colFirst"><code>byte[]</code></td>
160<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/GsonImp.html#serialize(java.lang.Object)">serialize</a></strong>(java.lang.Object&nbsp;obj)</code>
161<div class="block">Serialize</div>
162</td>
163</tr>
164</table>
165<ul class="blockList">
166<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
167<!--   -->
168</a>
169<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
170<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
171</ul>
172</li>
173</ul>
174</li>
175</ul>
176</div>
177<div class="details">
178<ul class="blockList">
179<li class="blockList">
180<!-- ========= CONSTRUCTOR DETAIL ======== -->
181<ul class="blockList">
182<li class="blockList"><a name="constructor_detail">
183<!--   -->
184</a>
185<h3>Constructor Detail</h3>
186<a name="GsonImp()">
187<!--   -->
188</a>
189<ul class="blockListLast">
190<li class="blockList">
191<h4>GsonImp</h4>
192<pre>public&nbsp;GsonImp()</pre>
193</li>
194</ul>
195</li>
196</ul>
197<!-- ============ METHOD DETAIL ========== -->
198<ul class="blockList">
199<li class="blockList"><a name="method_detail">
200<!--   -->
201</a>
202<h3>Method Detail</h3>
203<a name="serialize(java.lang.Object)">
204<!--   -->
205</a>
206<ul class="blockList">
207<li class="blockList">
208<h4>serialize</h4>
209<pre>public&nbsp;byte[]&nbsp;serialize(java.lang.Object&nbsp;obj)
210                 throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
211<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>
212<div class="block">Serialize</div>
213<dl>
214<dt><strong>Specified by:</strong></dt>
215<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>
216<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - - object to serialize</dd>
217<dt><span class="strong">Returns:</span></dt><dd>objectSerialized</dd>
218<dt><span class="strong">Throws:</span></dt>
219<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
220</li>
221</ul>
222<a name="deserializeRequest(byte[], omq.server.RemoteObject)">
223<!--   -->
224</a>
225<ul class="blockList">
226<li class="blockList">
227<h4>deserializeRequest</h4>
228<pre>public&nbsp;<a href="../../../../omq/common/message/Request.html" title="class in omq.common.message">Request</a>&nbsp;deserializeRequest(byte[]&nbsp;bytes,
229                         <a href="../../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a>&nbsp;obj)
230                           throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
231<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>
232<div class="block">Deserialize a Request</div>
233<dl>
234<dt><strong>Specified by:</strong></dt>
235<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>
236<dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - - serialized request</dd><dd><code>obj</code> - - remoteObject which is receiving requests</dd>
237<dt><span class="strong">Returns:</span></dt><dd>request</dd>
238<dt><span class="strong">Throws:</span></dt>
239<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
240</li>
241</ul>
242<a name="deserializeResponse(byte[], java.lang.Class)">
243<!--   -->
244</a>
245<ul class="blockListLast">
246<li class="blockList">
247<h4>deserializeResponse</h4>
248<pre>public&nbsp;<a href="../../../../omq/common/message/Response.html" title="class in omq.common.message">Response</a>&nbsp;deserializeResponse(byte[]&nbsp;bytes,
249                           java.lang.Class&lt;?&gt;&nbsp;type)
250                             throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
251<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>
252<div class="block">Deserialize a Response</div>
253<dl>
254<dt><strong>Specified by:</strong></dt>
255<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>
256<dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - serialized response</dd><dd><code>type</code> - - return type expected</dd>
257<dt><span class="strong">Returns:</span></dt><dd>response</dd>
258<dt><span class="strong">Throws:</span></dt>
259<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
260</li>
261</ul>
262</li>
263</ul>
264</li>
265</ul>
266</div>
267</div>
268<!-- ========= END OF CLASS DATA ========= -->
269<!-- ======= START OF BOTTOM NAVBAR ====== -->
270<div class="bottomNav"><a name="navbar_bottom">
271<!--   -->
272</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
273<!--   -->
274</a>
275<ul class="navList" title="Navigation">
276<li><a href="../../../../overview-summary.html">Overview</a></li>
277<li><a href="package-summary.html">Package</a></li>
278<li class="navBarCell1Rev">Class</li>
279<li><a href="class-use/GsonImp.html">Use</a></li>
280<li><a href="package-tree.html">Tree</a></li>
281<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
282<li><a href="../../../../index-files/index-1.html">Index</a></li>
283<li><a href="../../../../help-doc.html">Help</a></li>
284</ul>
285</div>
286<div class="subNav">
287<ul class="navList">
288<li>Prev Class</li>
289<li><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers"><span class="strong">Next Class</span></a></li>
290</ul>
291<ul class="navList">
292<li><a href="../../../../index.html?omq/common/util/Serializers/GsonImp.html" target="_top">Frames</a></li>
293<li><a href="GsonImp.html" target="_top">No Frames</a></li>
294</ul>
295<ul class="navList" id="allclasses_navbar_bottom">
296<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
297</ul>
298<div>
299<script type="text/javascript"><!--
300  allClassesLink = document.getElementById("allclasses_navbar_bottom");
301  if(window==top) {
302    allClassesLink.style.display = "block";
303  }
304  else {
305    allClassesLink.style.display = "none";
306  }
307  //-->
308</script>
309</div>
310<div>
311<ul class="subNavList">
312<li>Summary:&nbsp;</li>
313<li>Nested&nbsp;|&nbsp;</li>
314<li>Field&nbsp;|&nbsp;</li>
315<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
316<li><a href="#method_summary">Method</a></li>
317</ul>
318<ul class="subNavList">
319<li>Detail:&nbsp;</li>
320<li>Field&nbsp;|&nbsp;</li>
321<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
322<li><a href="#method_detail">Method</a></li>
323</ul>
324</div>
325<a name="skip-navbar_bottom">
326<!--   -->
327</a></div>
328<!-- ======== END OF BOTTOM NAVBAR ======= -->
329</body>
330</html>
Note: See TracBrowser for help on using the repository browser.