• 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 -->
6<title>CompatDecoderFactory (library 3.9.0 API)</title>
7<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
8<script type="text/javascript" src="../../../../../script.js"></script>
9</head>
10<body>
11<script type="text/javascript"><!--
12    try {
13        if (location.href.indexOf('is-external=true') == -1) {
14            parent.document.title="CompatDecoderFactory (library 3.9.0 API)";
15        }
16    }
17    catch(err) {
18    }
19//-->
20var methods = {"i0":10};
21var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
22var altColor = "altColor";
23var rowColor = "rowColor";
24var tableTab = "tableTab";
25var activeTableTab = "activeTableTab";
26</script>
27<noscript>
28<div>JavaScript is disabled on your browser.</div>
29</noscript>
30<!-- ========= START OF TOP NAVBAR ======= -->
31<div class="topNav"><a name="navbar.top">
32<!--   -->
33</a>
34<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
35<a name="navbar.top.firstrow">
36<!--   -->
37</a>
38<ul class="navList" title="Navigation">
39<li><a href="../../../../../overview-summary.html">Overview</a></li>
40<li><a href="package-summary.html">Package</a></li>
41<li class="navBarCell1Rev">Class</li>
42<li><a href="package-tree.html">Tree</a></li>
43<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
44<li><a href="../../../../../index-all.html">Index</a></li>
45<li><a href="../../../../../help-doc.html">Help</a></li>
46</ul>
47</div>
48<div class="subNav">
49<ul class="navList">
50<li>Prev&nbsp;Class</li>
51<li><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html" title="interface in com.davemorrissey.labs.subscaleview.decoder"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
52</ul>
53<ul class="navList">
54<li><a href="../../../../../index.html?com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" target="_top">Frames</a></li>
55<li><a href="CompatDecoderFactory.html" target="_top">No&nbsp;Frames</a></li>
56</ul>
57<ul class="navList" id="allclasses_navbar_top">
58<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
59</ul>
60<div>
61<script type="text/javascript"><!--
62  allClassesLink = document.getElementById("allclasses_navbar_top");
63  if(window==top) {
64    allClassesLink.style.display = "block";
65  }
66  else {
67    allClassesLink.style.display = "none";
68  }
69  //-->
70</script>
71</div>
72<div>
73<ul class="subNavList">
74<li>Summary:&nbsp;</li>
75<li>Nested&nbsp;|&nbsp;</li>
76<li>Field&nbsp;|&nbsp;</li>
77<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
78<li><a href="#method.summary">Method</a></li>
79</ul>
80<ul class="subNavList">
81<li>Detail:&nbsp;</li>
82<li>Field&nbsp;|&nbsp;</li>
83<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
84<li><a href="#method.detail">Method</a></li>
85</ul>
86</div>
87<a name="skip.navbar.top">
88<!--   -->
89</a></div>
90<!-- ========= END OF TOP NAVBAR ========= -->
91<!-- ======== START OF CLASS DATA ======== -->
92<div class="header">
93<div class="subTitle">com.davemorrissey.labs.subscaleview.decoder</div>
94<h2 title="Class CompatDecoderFactory" class="title">Class CompatDecoderFactory&lt;T&gt;</h2>
95</div>
96<div class="contentContainer">
97<ul class="inheritance">
98<li><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
99<li>
100<ul class="inheritance">
101<li>com.davemorrissey.labs.subscaleview.decoder.CompatDecoderFactory&lt;T&gt;</li>
102</ul>
103</li>
104</ul>
105<div class="description">
106<ul class="blockList">
107<li class="blockList">
108<dl>
109<dt><span class="paramLabel">Type Parameters:</span></dt>
110<dd><code>T</code> - The base type of the decoder this factory will produce.</dd>
111</dl>
112<dl>
113<dt>All Implemented Interfaces:</dt>
114<dd><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html" title="interface in com.davemorrissey.labs.subscaleview.decoder">DecoderFactory</a>&lt;T&gt;</dd>
115</dl>
116<hr>
117<br>
118<pre>public class <span class="typeNameLabel">CompatDecoderFactory&lt;T&gt;</span>
119extends <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
120implements <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html" title="interface in com.davemorrissey.labs.subscaleview.decoder">DecoderFactory</a>&lt;T&gt;</pre>
121<div class="block">Compatibility factory to instantiate decoders with empty public constructors.</div>
122</li>
123</ul>
124</div>
125<div class="summary">
126<ul class="blockList">
127<li class="blockList">
128<!-- ======== CONSTRUCTOR SUMMARY ======== -->
129<ul class="blockList">
130<li class="blockList"><a name="constructor.summary">
131<!--   -->
132</a>
133<h3>Constructor Summary</h3>
134<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
135<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
136<tr>
137<th class="colOne" scope="col">Constructor and Description</th>
138</tr>
139<tr class="altColor">
140<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html#CompatDecoderFactory-java.lang.Class-">CompatDecoderFactory</a></span>(<a href="https://developer.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a>&gt;&nbsp;clazz)</code>
141<div class="block">Construct a factory for the given class.</div>
142</td>
143</tr>
144<tr class="rowColor">
145<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html#CompatDecoderFactory-java.lang.Class-android.graphics.Bitmap.Config-">CompatDecoderFactory</a></span>(<a href="https://developer.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a>&gt;&nbsp;clazz,
146                    <a href="https://developer.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics">Bitmap.Config</a>&nbsp;bitmapConfig)</code>
147<div class="block">Construct a factory for the given class.</div>
148</td>
149</tr>
150</table>
151</li>
152</ul>
153<!-- ========== METHOD SUMMARY =========== -->
154<ul class="blockList">
155<li class="blockList"><a name="method.summary">
156<!--   -->
157</a>
158<h3>Method Summary</h3>
159<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
160<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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>
161<tr>
162<th class="colFirst" scope="col">Modifier and Type</th>
163<th class="colLast" scope="col">Method and Description</th>
164</tr>
165<tr id="i0" class="altColor">
166<td class="colFirst"><code><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a></code></td>
167<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html#make--">make</a></span>()</code>
168<div class="block">Produce a new instance of a decoder with type <code>T</code>.</div>
169</td>
170</tr>
171</table>
172<ul class="blockList">
173<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
174<!--   -->
175</a>
176<h3>Methods inherited from class&nbsp;java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
177<code><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
178</ul>
179</li>
180</ul>
181</li>
182</ul>
183</div>
184<div class="details">
185<ul class="blockList">
186<li class="blockList">
187<!-- ========= CONSTRUCTOR DETAIL ======== -->
188<ul class="blockList">
189<li class="blockList"><a name="constructor.detail">
190<!--   -->
191</a>
192<h3>Constructor Detail</h3>
193<a name="CompatDecoderFactory-java.lang.Class-">
194<!--   -->
195</a>
196<ul class="blockList">
197<li class="blockList">
198<h4>CompatDecoderFactory</h4>
199<pre>public&nbsp;CompatDecoderFactory(<a href="https://developer.android.com/reference/android/support.annotation.NonNull.html?is-external=true" title="class or interface in android">@NonNull</a>
200                            <a href="https://developer.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a>&gt;&nbsp;clazz)</pre>
201<div class="block">Construct a factory for the given class. This must have a default constructor.</div>
202<dl>
203<dt><span class="paramLabel">Parameters:</span></dt>
204<dd><code>clazz</code> - a class that implements <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/ImageDecoder.html" title="interface in com.davemorrissey.labs.subscaleview.decoder"><code>ImageDecoder</code></a> or <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/ImageRegionDecoder.html" title="interface in com.davemorrissey.labs.subscaleview.decoder"><code>ImageRegionDecoder</code></a>.</dd>
205</dl>
206</li>
207</ul>
208<a name="CompatDecoderFactory-java.lang.Class-android.graphics.Bitmap.Config-">
209<!--   -->
210</a>
211<ul class="blockListLast">
212<li class="blockList">
213<h4>CompatDecoderFactory</h4>
214<pre>public&nbsp;CompatDecoderFactory(<a href="https://developer.android.com/reference/android/support.annotation.NonNull.html?is-external=true" title="class or interface in android">@NonNull</a>
215                            <a href="https://developer.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a>&gt;&nbsp;clazz,
216                            <a href="https://developer.android.com/reference/android/graphics/Bitmap.Config.html?is-external=true" title="class or interface in android.graphics">Bitmap.Config</a>&nbsp;bitmapConfig)</pre>
217<div class="block">Construct a factory for the given class. This must have a constructor that accepts a <code>Bitmap.Config</code> instance.</div>
218<dl>
219<dt><span class="paramLabel">Parameters:</span></dt>
220<dd><code>clazz</code> - a class that implements <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/ImageDecoder.html" title="interface in com.davemorrissey.labs.subscaleview.decoder"><code>ImageDecoder</code></a> or <a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/ImageRegionDecoder.html" title="interface in com.davemorrissey.labs.subscaleview.decoder"><code>ImageRegionDecoder</code></a>.</dd>
221<dd><code>bitmapConfig</code> - bitmap configuration to be used when loading images.</dd>
222</dl>
223</li>
224</ul>
225</li>
226</ul>
227<!-- ============ METHOD DETAIL ========== -->
228<ul class="blockList">
229<li class="blockList"><a name="method.detail">
230<!--   -->
231</a>
232<h3>Method Detail</h3>
233<a name="make--">
234<!--   -->
235</a>
236<ul class="blockListLast">
237<li class="blockList">
238<h4>make</h4>
239<pre>public&nbsp;<a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a>&nbsp;make()
240       throws <a href="https://developer.android.com/reference/java/lang/IllegalAccessException.html?is-external=true" title="class or interface in java.lang">IllegalAccessException</a>,
241              <a href="https://developer.android.com/reference/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a>,
242              <a href="https://developer.android.com/reference/java/lang/NoSuchMethodException.html?is-external=true" title="class or interface in java.lang">NoSuchMethodException</a>,
243              <a href="https://developer.android.com/reference/java/lang/reflect/InvocationTargetException.html?is-external=true" title="class or interface in java.lang.reflect">InvocationTargetException</a></pre>
244<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html#make--">DecoderFactory</a></code></span></div>
245<div class="block">Produce a new instance of a decoder with type <code>T</code>.</div>
246<dl>
247<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
248<dd><code><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html#make--">make</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html" title="interface in com.davemorrissey.labs.subscaleview.decoder">DecoderFactory</a>&lt;<a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" title="type parameter in CompatDecoderFactory">T</a>&gt;</code></dd>
249<dt><span class="returnLabel">Returns:</span></dt>
250<dd>a new instance of your decoder.</dd>
251<dt><span class="throwsLabel">Throws:</span></dt>
252<dd><code><a href="https://developer.android.com/reference/java/lang/IllegalAccessException.html?is-external=true" title="class or interface in java.lang">IllegalAccessException</a></code> - if the factory class cannot be instantiated.</dd>
253<dd><code><a href="https://developer.android.com/reference/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></code> - if the factory class cannot be instantiated.</dd>
254<dd><code><a href="https://developer.android.com/reference/java/lang/NoSuchMethodException.html?is-external=true" title="class or interface in java.lang">NoSuchMethodException</a></code> - if the factory class cannot be instantiated.</dd>
255<dd><code><a href="https://developer.android.com/reference/java/lang/reflect/InvocationTargetException.html?is-external=true" title="class or interface in java.lang.reflect">InvocationTargetException</a></code> - if the factory class cannot be instantiated.</dd>
256</dl>
257</li>
258</ul>
259</li>
260</ul>
261</li>
262</ul>
263</div>
264</div>
265<!-- ========= END OF CLASS DATA ========= -->
266<!-- ======= START OF BOTTOM NAVBAR ====== -->
267<div class="bottomNav"><a name="navbar.bottom">
268<!--   -->
269</a>
270<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
271<a name="navbar.bottom.firstrow">
272<!--   -->
273</a>
274<ul class="navList" title="Navigation">
275<li><a href="../../../../../overview-summary.html">Overview</a></li>
276<li><a href="package-summary.html">Package</a></li>
277<li class="navBarCell1Rev">Class</li>
278<li><a href="package-tree.html">Tree</a></li>
279<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
280<li><a href="../../../../../index-all.html">Index</a></li>
281<li><a href="../../../../../help-doc.html">Help</a></li>
282</ul>
283</div>
284<div class="subNav">
285<ul class="navList">
286<li>Prev&nbsp;Class</li>
287<li><a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html" title="interface in com.davemorrissey.labs.subscaleview.decoder"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
288</ul>
289<ul class="navList">
290<li><a href="../../../../../index.html?com/davemorrissey/labs/subscaleview/decoder/CompatDecoderFactory.html" target="_top">Frames</a></li>
291<li><a href="CompatDecoderFactory.html" target="_top">No&nbsp;Frames</a></li>
292</ul>
293<ul class="navList" id="allclasses_navbar_bottom">
294<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
295</ul>
296<div>
297<script type="text/javascript"><!--
298  allClassesLink = document.getElementById("allclasses_navbar_bottom");
299  if(window==top) {
300    allClassesLink.style.display = "block";
301  }
302  else {
303    allClassesLink.style.display = "none";
304  }
305  //-->
306</script>
307</div>
308<div>
309<ul class="subNavList">
310<li>Summary:&nbsp;</li>
311<li>Nested&nbsp;|&nbsp;</li>
312<li>Field&nbsp;|&nbsp;</li>
313<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
314<li><a href="#method.summary">Method</a></li>
315</ul>
316<ul class="subNavList">
317<li>Detail:&nbsp;</li>
318<li>Field&nbsp;|&nbsp;</li>
319<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
320<li><a href="#method.detail">Method</a></li>
321</ul>
322</div>
323<a name="skip.navbar.bottom">
324<!--   -->
325</a></div>
326<!-- ======== END OF BOTTOM NAVBAR ======= -->
327</body>
328</html>
329