• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 (version 1.7.0_10-ea) on Sun Jul 14 20:03:33 PDT 2013 -->
6<title>Tool (Jackson JSON Processor)</title>
7<meta name="date" content="2013-07-14">
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="Tool (Jackson JSON Processor)";
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/Tool.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-all.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="../../../../org/codehaus/jackson/smile/SmileUtil.html" title="class in org.codehaus.jackson.smile"><span class="strong">Prev Class</span></a></li>
40<li>Next Class</li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?org/codehaus/jackson/smile/Tool.html" target="_top">Frames</a></li>
44<li><a href="Tool.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><a href="#field_summary">Field</a>&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><a href="#field_detail">Field</a>&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">org.codehaus.jackson.smile</div>
83<h2 title="Class Tool" class="title">Class Tool</h2>
84</div>
85<div class="contentContainer">
86<ul class="inheritance">
87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
88<li>
89<ul class="inheritance">
90<li>org.codehaus.jackson.smile.Tool</li>
91</ul>
92</li>
93</ul>
94<div class="description">
95<ul class="blockList">
96<li class="blockList">
97<hr>
98<br>
99<pre>public class <span class="strong">Tool</span>
100extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
101<div class="block">Simple command-line utility that can be used to encode JSON as Smile, or
102 decode JSON from Smile: direction is indicated by single command-line
103 option of either "-e" (encode) or "-d" (decode).</div>
104<dl><dt><span class="strong">Since:</span></dt>
105  <dd>1.6.2</dd>
106<dt><span class="strong">Author:</span></dt>
107  <dd>tatu</dd></dl>
108</li>
109</ul>
110</div>
111<div class="summary">
112<ul class="blockList">
113<li class="blockList">
114<!-- =========== FIELD SUMMARY =========== -->
115<ul class="blockList">
116<li class="blockList"><a name="field_summary">
117<!--   -->
118</a>
119<h3>Field Summary</h3>
120<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
121<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
122<tr>
123<th class="colFirst" scope="col">Modifier and Type</th>
124<th class="colLast" scope="col">Field and Description</th>
125</tr>
126<tr class="altColor">
127<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td>
128<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/smile/Tool.html#jsonFactory">jsonFactory</a></strong></code>&nbsp;</td>
129</tr>
130<tr class="rowColor">
131<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/smile/SmileFactory.html" title="class in org.codehaus.jackson.smile">SmileFactory</a></code></td>
132<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/smile/Tool.html#smileFactory">smileFactory</a></strong></code>&nbsp;</td>
133</tr>
134<tr class="altColor">
135<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
136<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/smile/Tool.html#SUFFIX">SUFFIX</a></strong></code>&nbsp;</td>
137</tr>
138</table>
139</li>
140</ul>
141<!-- ======== CONSTRUCTOR SUMMARY ======== -->
142<ul class="blockList">
143<li class="blockList"><a name="constructor_summary">
144<!--   -->
145</a>
146<h3>Constructor Summary</h3>
147<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
148<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
149<tr>
150<th class="colOne" scope="col">Constructor and Description</th>
151</tr>
152<tr class="altColor">
153<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/smile/Tool.html#Tool()">Tool</a></strong>()</code>&nbsp;</td>
154</tr>
155</table>
156</li>
157</ul>
158<!-- ========== METHOD SUMMARY =========== -->
159<ul class="blockList">
160<li class="blockList"><a name="method_summary">
161<!--   -->
162</a>
163<h3>Method Summary</h3>
164<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
165<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
166<tr>
167<th class="colFirst" scope="col">Modifier and Type</th>
168<th class="colLast" scope="col">Method and Description</th>
169</tr>
170<tr class="altColor">
171<td class="colFirst"><code>static void</code></td>
172<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/smile/Tool.html#main(java.lang.String[])">main</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)</code>&nbsp;</td>
173</tr>
174<tr class="rowColor">
175<td class="colFirst"><code>protected void</code></td>
176<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/smile/Tool.html#showUsage()">showUsage</a></strong>()</code>&nbsp;</td>
177</tr>
178</table>
179<ul class="blockList">
180<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
181<!--   -->
182</a>
183<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
184<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
185</ul>
186</li>
187</ul>
188</li>
189</ul>
190</div>
191<div class="details">
192<ul class="blockList">
193<li class="blockList">
194<!-- ============ FIELD DETAIL =========== -->
195<ul class="blockList">
196<li class="blockList"><a name="field_detail">
197<!--   -->
198</a>
199<h3>Field Detail</h3>
200<a name="SUFFIX">
201<!--   -->
202</a>
203<ul class="blockList">
204<li class="blockList">
205<h4>SUFFIX</h4>
206<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> SUFFIX</pre>
207<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.codehaus.jackson.smile.Tool.SUFFIX">Constant Field Values</a></dd></dl>
208</li>
209</ul>
210<a name="jsonFactory">
211<!--   -->
212</a>
213<ul class="blockList">
214<li class="blockList">
215<h4>jsonFactory</h4>
216<pre>public final&nbsp;<a href="../../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> jsonFactory</pre>
217</li>
218</ul>
219<a name="smileFactory">
220<!--   -->
221</a>
222<ul class="blockListLast">
223<li class="blockList">
224<h4>smileFactory</h4>
225<pre>public final&nbsp;<a href="../../../../org/codehaus/jackson/smile/SmileFactory.html" title="class in org.codehaus.jackson.smile">SmileFactory</a> smileFactory</pre>
226</li>
227</ul>
228</li>
229</ul>
230<!-- ========= CONSTRUCTOR DETAIL ======== -->
231<ul class="blockList">
232<li class="blockList"><a name="constructor_detail">
233<!--   -->
234</a>
235<h3>Constructor Detail</h3>
236<a name="Tool()">
237<!--   -->
238</a>
239<ul class="blockListLast">
240<li class="blockList">
241<h4>Tool</h4>
242<pre>public&nbsp;Tool()</pre>
243</li>
244</ul>
245</li>
246</ul>
247<!-- ============ METHOD DETAIL ========== -->
248<ul class="blockList">
249<li class="blockList"><a name="method_detail">
250<!--   -->
251</a>
252<h3>Method Detail</h3>
253<a name="showUsage()">
254<!--   -->
255</a>
256<ul class="blockList">
257<li class="blockList">
258<h4>showUsage</h4>
259<pre>protected&nbsp;void&nbsp;showUsage()</pre>
260</li>
261</ul>
262<a name="main(java.lang.String[])">
263<!--   -->
264</a>
265<ul class="blockListLast">
266<li class="blockList">
267<h4>main</h4>
268<pre>public static&nbsp;void&nbsp;main(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)
269                 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
270<dl><dt><span class="strong">Throws:</span></dt>
271<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
272</li>
273</ul>
274</li>
275</ul>
276</li>
277</ul>
278</div>
279</div>
280<!-- ========= END OF CLASS DATA ========= -->
281<!-- ======= START OF BOTTOM NAVBAR ====== -->
282<div class="bottomNav"><a name="navbar_bottom">
283<!--   -->
284</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
285<!--   -->
286</a>
287<ul class="navList" title="Navigation">
288<li><a href="../../../../overview-summary.html">Overview</a></li>
289<li><a href="package-summary.html">Package</a></li>
290<li class="navBarCell1Rev">Class</li>
291<li><a href="class-use/Tool.html">Use</a></li>
292<li><a href="package-tree.html">Tree</a></li>
293<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
294<li><a href="../../../../index-all.html">Index</a></li>
295<li><a href="../../../../help-doc.html">Help</a></li>
296</ul>
297</div>
298<div class="subNav">
299<ul class="navList">
300<li><a href="../../../../org/codehaus/jackson/smile/SmileUtil.html" title="class in org.codehaus.jackson.smile"><span class="strong">Prev Class</span></a></li>
301<li>Next Class</li>
302</ul>
303<ul class="navList">
304<li><a href="../../../../index.html?org/codehaus/jackson/smile/Tool.html" target="_top">Frames</a></li>
305<li><a href="Tool.html" target="_top">No Frames</a></li>
306</ul>
307<ul class="navList" id="allclasses_navbar_bottom">
308<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
309</ul>
310<div>
311<script type="text/javascript"><!--
312  allClassesLink = document.getElementById("allclasses_navbar_bottom");
313  if(window==top) {
314    allClassesLink.style.display = "block";
315  }
316  else {
317    allClassesLink.style.display = "none";
318  }
319  //-->
320</script>
321</div>
322<div>
323<ul class="subNavList">
324<li>Summary:&nbsp;</li>
325<li>Nested&nbsp;|&nbsp;</li>
326<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
327<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
328<li><a href="#method_summary">Method</a></li>
329</ul>
330<ul class="subNavList">
331<li>Detail:&nbsp;</li>
332<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
333<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
334<li><a href="#method_detail">Method</a></li>
335</ul>
336</div>
337<a name="skip-navbar_bottom">
338<!--   -->
339</a></div>
340<!-- ======== END OF BOTTOM NAVBAR ======= -->
341</body>
342</html>
343