• 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:25 PDT 2013 -->
6<title>VersionUtil (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="VersionUtil (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/VersionUtil.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/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util"><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/util/VersionUtil.html" target="_top">Frames</a></li>
44<li><a href="VersionUtil.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.util</div>
83<h2 title="Class VersionUtil" class="title">Class VersionUtil</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.util.VersionUtil</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">VersionUtil</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">Functionality for supporting exposing of component <a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a>s.</div>
102<dl><dt><span class="strong">Since:</span></dt>
103  <dd>1.6</dd></dl>
104</li>
105</ul>
106</div>
107<div class="summary">
108<ul class="blockList">
109<li class="blockList">
110<!-- =========== FIELD SUMMARY =========== -->
111<ul class="blockList">
112<li class="blockList"><a name="field_summary">
113<!--   -->
114</a>
115<h3>Field Summary</h3>
116<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
117<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
118<tr>
119<th class="colFirst" scope="col">Modifier and Type</th>
120<th class="colLast" scope="col">Field and Description</th>
121</tr>
122<tr class="altColor">
123<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>
124<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/VersionUtil.html#VERSION_FILE">VERSION_FILE</a></strong></code>&nbsp;</td>
125</tr>
126</table>
127</li>
128</ul>
129<!-- ======== CONSTRUCTOR SUMMARY ======== -->
130<ul class="blockList">
131<li class="blockList"><a name="constructor_summary">
132<!--   -->
133</a>
134<h3>Constructor Summary</h3>
135<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
136<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
137<tr>
138<th class="colOne" scope="col">Constructor and Description</th>
139</tr>
140<tr class="altColor">
141<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/VersionUtil.html#VersionUtil()">VersionUtil</a></strong>()</code>&nbsp;</td>
142</tr>
143</table>
144</li>
145</ul>
146<!-- ========== METHOD SUMMARY =========== -->
147<ul class="blockList">
148<li class="blockList"><a name="method_summary">
149<!--   -->
150</a>
151<h3>Method Summary</h3>
152<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
153<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
154<tr>
155<th class="colFirst" scope="col">Modifier and Type</th>
156<th class="colLast" scope="col">Method and Description</th>
157</tr>
158<tr class="altColor">
159<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td>
160<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/VersionUtil.html#parseVersion(java.lang.String)">parseVersion</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;versionStr)</code>&nbsp;</td>
161</tr>
162<tr class="rowColor">
163<td class="colFirst"><code>protected static int</code></td>
164<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/VersionUtil.html#parseVersionPart(java.lang.String)">parseVersionPart</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;partStr)</code>&nbsp;</td>
165</tr>
166<tr class="altColor">
167<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td>
168<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/VersionUtil.html#versionFor(java.lang.Class)">versionFor</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;cls)</code>
169<div class="block">Helper method that will try to load version information for specified
170 class.</div>
171</td>
172</tr>
173</table>
174<ul class="blockList">
175<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
176<!--   -->
177</a>
178<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>
179<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>
180</ul>
181</li>
182</ul>
183</li>
184</ul>
185</div>
186<div class="details">
187<ul class="blockList">
188<li class="blockList">
189<!-- ============ FIELD DETAIL =========== -->
190<ul class="blockList">
191<li class="blockList"><a name="field_detail">
192<!--   -->
193</a>
194<h3>Field Detail</h3>
195<a name="VERSION_FILE">
196<!--   -->
197</a>
198<ul class="blockListLast">
199<li class="blockList">
200<h4>VERSION_FILE</h4>
201<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> VERSION_FILE</pre>
202<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.codehaus.jackson.util.VersionUtil.VERSION_FILE">Constant Field Values</a></dd></dl>
203</li>
204</ul>
205</li>
206</ul>
207<!-- ========= CONSTRUCTOR DETAIL ======== -->
208<ul class="blockList">
209<li class="blockList"><a name="constructor_detail">
210<!--   -->
211</a>
212<h3>Constructor Detail</h3>
213<a name="VersionUtil()">
214<!--   -->
215</a>
216<ul class="blockListLast">
217<li class="blockList">
218<h4>VersionUtil</h4>
219<pre>public&nbsp;VersionUtil()</pre>
220</li>
221</ul>
222</li>
223</ul>
224<!-- ============ METHOD DETAIL ========== -->
225<ul class="blockList">
226<li class="blockList"><a name="method_detail">
227<!--   -->
228</a>
229<h3>Method Detail</h3>
230<a name="versionFor(java.lang.Class)">
231<!--   -->
232</a>
233<ul class="blockList">
234<li class="blockList">
235<h4>versionFor</h4>
236<pre>public static&nbsp;<a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a>&nbsp;versionFor(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;cls)</pre>
237<div class="block">Helper method that will try to load version information for specified
238 class. Implementation is simple: class loader that loaded specified
239 class is asked to load resource with name "VERSION" from same
240 location (package) as class itself had.
241 If no version information is found, <a href="../../../../org/codehaus/jackson/Version.html#unknownVersion()"><code>Version.unknownVersion()</code></a> is
242 returned.</div>
243</li>
244</ul>
245<a name="parseVersion(java.lang.String)">
246<!--   -->
247</a>
248<ul class="blockList">
249<li class="blockList">
250<h4>parseVersion</h4>
251<pre>public static&nbsp;<a href="../../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a>&nbsp;parseVersion(<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;versionStr)</pre>
252</li>
253</ul>
254<a name="parseVersionPart(java.lang.String)">
255<!--   -->
256</a>
257<ul class="blockListLast">
258<li class="blockList">
259<h4>parseVersionPart</h4>
260<pre>protected static&nbsp;int&nbsp;parseVersionPart(<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;partStr)</pre>
261</li>
262</ul>
263</li>
264</ul>
265</li>
266</ul>
267</div>
268</div>
269<!-- ========= END OF CLASS DATA ========= -->
270<!-- ======= START OF BOTTOM NAVBAR ====== -->
271<div class="bottomNav"><a name="navbar_bottom">
272<!--   -->
273</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
274<!--   -->
275</a>
276<ul class="navList" title="Navigation">
277<li><a href="../../../../overview-summary.html">Overview</a></li>
278<li><a href="package-summary.html">Package</a></li>
279<li class="navBarCell1Rev">Class</li>
280<li><a href="class-use/VersionUtil.html">Use</a></li>
281<li><a href="package-tree.html">Tree</a></li>
282<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
283<li><a href="../../../../index-all.html">Index</a></li>
284<li><a href="../../../../help-doc.html">Help</a></li>
285</ul>
286</div>
287<div class="subNav">
288<ul class="navList">
289<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li>
290<li>Next Class</li>
291</ul>
292<ul class="navList">
293<li><a href="../../../../index.html?org/codehaus/jackson/util/VersionUtil.html" target="_top">Frames</a></li>
294<li><a href="VersionUtil.html" target="_top">No Frames</a></li>
295</ul>
296<ul class="navList" id="allclasses_navbar_bottom">
297<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
298</ul>
299<div>
300<script type="text/javascript"><!--
301  allClassesLink = document.getElementById("allclasses_navbar_bottom");
302  if(window==top) {
303    allClassesLink.style.display = "block";
304  }
305  else {
306    allClassesLink.style.display = "none";
307  }
308  //-->
309</script>
310</div>
311<div>
312<ul class="subNavList">
313<li>Summary:&nbsp;</li>
314<li>Nested&nbsp;|&nbsp;</li>
315<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
316<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
317<li><a href="#method_summary">Method</a></li>
318</ul>
319<ul class="subNavList">
320<li>Detail:&nbsp;</li>
321<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
322<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
323<li><a href="#method_detail">Method</a></li>
324</ul>
325</div>
326<a name="skip-navbar_bottom">
327<!--   -->
328</a></div>
329<!-- ======== END OF BOTTOM NAVBAR ======= -->
330</body>
331</html>
332