ByteArrayDataSource.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <!-- Generated by javadoc -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>ByteArrayDataSource (Apache Commons Email 1.5 API)</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="ByteArrayDataSource (Apache Commons Email 1.5 API)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":42,"i1":42,"i2":42,"i3":42,"i4":42};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/ByteArrayDataSource.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../../index-all.html">Index</a></li>
  47. <li><a href="../../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li>Prev&nbsp;Class</li>
  53. <li><a href="../../../../org/apache/commons/mail/DataSourceResolver.html" title="interface in org.apache.commons.mail"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/apache/commons/mail/ByteArrayDataSource.html" target="_top">Frames</a></li>
  57. <li><a href="ByteArrayDataSource.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.apache.commons.mail</div>
  96. <h2 title="Class ByteArrayDataSource" class="title">Class ByteArrayDataSource</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>org.apache.commons.mail.ByteArrayDataSource</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <dl>
  111. <dt>All Implemented Interfaces:</dt>
  112. <dd><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></dd>
  113. </dl>
  114. <hr>
  115. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  116. <div class="block"><span class="deprecationComment">since 1.4, use <a href="http://docs.oracle.com/javaee/6/api/javax/mail/util/ByteArrayDataSource.html?is-external=true" title="class or interface in javax.mail.util"><code>ByteArrayDataSource</code></a> instead</span></div>
  117. </div>
  118. <br>
  119. <pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
  120. public class <span class="typeNameLabel">ByteArrayDataSource</span>
  121. extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
  122. implements <a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></pre>
  123. <div class="block">This class implements a typed DataSource from:<br>
  124. - an InputStream<br>
  125. - a byte array<br>
  126. - a String<br>
  127. <p>
  128. From version 1.3.1, it is possible to set a name for this DataSource,
  129. and it is recommended to do so.</div>
  130. <dl>
  131. <dt><span class="simpleTagLabel">Since:</span></dt>
  132. <dd>1.0</dd>
  133. </dl>
  134. </li>
  135. </ul>
  136. </div>
  137. <div class="summary">
  138. <ul class="blockList">
  139. <li class="blockList">
  140. <!-- =========== FIELD SUMMARY =========== -->
  141. <ul class="blockList">
  142. <li class="blockList"><a name="field.summary">
  143. <!-- -->
  144. </a>
  145. <h3>Field Summary</h3>
  146. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  147. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  148. <tr>
  149. <th class="colFirst" scope="col">Modifier and Type</th>
  150. <th class="colLast" scope="col">Field and Description</th>
  151. </tr>
  152. <tr class="altColor">
  153. <td class="colFirst"><code>static int</code></td>
  154. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#BUFFER_SIZE">BUFFER_SIZE</a></span></code>
  155. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  156. <div class="block">Define the buffer size.</div>
  157. </td>
  158. </tr>
  159. </table>
  160. </li>
  161. </ul>
  162. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  163. <ul class="blockList">
  164. <li class="blockList"><a name="constructor.summary">
  165. <!-- -->
  166. </a>
  167. <h3>Constructor Summary</h3>
  168. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  169. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  170. <tr>
  171. <th class="colOne" scope="col">Constructor and Description</th>
  172. </tr>
  173. <tr class="altColor">
  174. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#ByteArrayDataSource-byte:A-java.lang.String-">ByteArrayDataSource</a></span>(byte[]&nbsp;data,
  175. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;aType)</code>
  176. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  177. <div class="block">Create a datasource from a byte array.</div>
  178. </td>
  179. </tr>
  180. <tr class="rowColor">
  181. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#ByteArrayDataSource-java.io.InputStream-java.lang.String-">ByteArrayDataSource</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;aIs,
  182. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;aType)</code>
  183. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  184. <div class="block">Create a datasource from an input stream.</div>
  185. </td>
  186. </tr>
  187. <tr class="altColor">
  188. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#ByteArrayDataSource-java.lang.String-java.lang.String-">ByteArrayDataSource</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;data,
  189. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;aType)</code>
  190. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  191. <div class="block">Create a datasource from a String.</div>
  192. </td>
  193. </tr>
  194. </table>
  195. </li>
  196. </ul>
  197. <!-- ========== METHOD SUMMARY =========== -->
  198. <ul class="blockList">
  199. <li class="blockList"><a name="method.summary">
  200. <!-- -->
  201. </a>
  202. <h3>Method Summary</h3>
  203. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  204. <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><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  205. <tr>
  206. <th class="colFirst" scope="col">Modifier and Type</th>
  207. <th class="colLast" scope="col">Method and Description</th>
  208. </tr>
  209. <tr id="i0" class="altColor">
  210. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
  211. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#getContentType--">getContentType</a></span>()</code>
  212. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  213. <div class="block">Get the content type.</div>
  214. </td>
  215. </tr>
  216. <tr id="i1" class="rowColor">
  217. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
  218. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#getInputStream--">getInputStream</a></span>()</code>
  219. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  220. <div class="block">Get the input stream.</div>
  221. </td>
  222. </tr>
  223. <tr id="i2" class="altColor">
  224. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
  225. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#getName--">getName</a></span>()</code>
  226. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  227. <div class="block">Get the name.</div>
  228. </td>
  229. </tr>
  230. <tr id="i3" class="rowColor">
  231. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
  232. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#getOutputStream--">getOutputStream</a></span>()</code>
  233. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  234. <div class="block">Get the OutputStream to write to.</div>
  235. </td>
  236. </tr>
  237. <tr id="i4" class="altColor">
  238. <td class="colFirst"><code>void</code></td>
  239. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/mail/ByteArrayDataSource.html#setName-java.lang.String-">setName</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>
  240. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  241. <div class="block">Sets the name for this DataSource.</div>
  242. </td>
  243. </tr>
  244. </table>
  245. <ul class="blockList">
  246. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  247. <!-- -->
  248. </a>
  249. <h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
  250. <code><a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
  251. </ul>
  252. </li>
  253. </ul>
  254. </li>
  255. </ul>
  256. </div>
  257. <div class="details">
  258. <ul class="blockList">
  259. <li class="blockList">
  260. <!-- ============ FIELD DETAIL =========== -->
  261. <ul class="blockList">
  262. <li class="blockList"><a name="field.detail">
  263. <!-- -->
  264. </a>
  265. <h3>Field Detail</h3>
  266. <a name="BUFFER_SIZE">
  267. <!-- -->
  268. </a>
  269. <ul class="blockListLast">
  270. <li class="blockList">
  271. <h4>BUFFER_SIZE</h4>
  272. <pre>public static final&nbsp;int BUFFER_SIZE</pre>
  273. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  274. <div class="block">Define the buffer size.</div>
  275. <dl>
  276. <dt><span class="seeLabel">See Also:</span></dt>
  277. <dd><a href="../../../../constant-values.html#org.apache.commons.mail.ByteArrayDataSource.BUFFER_SIZE">Constant Field Values</a></dd>
  278. </dl>
  279. </li>
  280. </ul>
  281. </li>
  282. </ul>
  283. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  284. <ul class="blockList">
  285. <li class="blockList"><a name="constructor.detail">
  286. <!-- -->
  287. </a>
  288. <h3>Constructor Detail</h3>
  289. <a name="ByteArrayDataSource-byte:A-java.lang.String-">
  290. <!-- -->
  291. </a>
  292. <ul class="blockList">
  293. <li class="blockList">
  294. <h4>ByteArrayDataSource</h4>
  295. <pre>public&nbsp;ByteArrayDataSource(byte[]&nbsp;data,
  296. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;aType)
  297. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  298. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  299. <div class="block">Create a datasource from a byte array.</div>
  300. <dl>
  301. <dt><span class="paramLabel">Parameters:</span></dt>
  302. <dd><code>data</code> - A byte[].</dd>
  303. <dd><code>aType</code> - A String.</dd>
  304. <dt><span class="throwsLabel">Throws:</span></dt>
  305. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - IOException</dd>
  306. <dt><span class="simpleTagLabel">Since:</span></dt>
  307. <dd>1.0</dd>
  308. </dl>
  309. </li>
  310. </ul>
  311. <a name="ByteArrayDataSource-java.io.InputStream-java.lang.String-">
  312. <!-- -->
  313. </a>
  314. <ul class="blockList">
  315. <li class="blockList">
  316. <h4>ByteArrayDataSource</h4>
  317. <pre>public&nbsp;ByteArrayDataSource(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;aIs,
  318. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;aType)
  319. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  320. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  321. <div class="block">Create a datasource from an input stream.</div>
  322. <dl>
  323. <dt><span class="paramLabel">Parameters:</span></dt>
  324. <dd><code>aIs</code> - An InputStream.</dd>
  325. <dd><code>aType</code> - A String.</dd>
  326. <dt><span class="throwsLabel">Throws:</span></dt>
  327. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - IOException</dd>
  328. <dt><span class="simpleTagLabel">Since:</span></dt>
  329. <dd>1.0</dd>
  330. </dl>
  331. </li>
  332. </ul>
  333. <a name="ByteArrayDataSource-java.lang.String-java.lang.String-">
  334. <!-- -->
  335. </a>
  336. <ul class="blockListLast">
  337. <li class="blockList">
  338. <h4>ByteArrayDataSource</h4>
  339. <pre>public&nbsp;ByteArrayDataSource(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;data,
  340. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;aType)
  341. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  342. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  343. <div class="block">Create a datasource from a String.
  344. N.B. assumes the data string can be converted using the charset iso-8859-1.</div>
  345. <dl>
  346. <dt><span class="paramLabel">Parameters:</span></dt>
  347. <dd><code>data</code> - A String.</dd>
  348. <dd><code>aType</code> - A String.</dd>
  349. <dt><span class="throwsLabel">Throws:</span></dt>
  350. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - IOException</dd>
  351. <dt><span class="simpleTagLabel">Since:</span></dt>
  352. <dd>1.0</dd>
  353. </dl>
  354. </li>
  355. </ul>
  356. </li>
  357. </ul>
  358. <!-- ============ METHOD DETAIL ========== -->
  359. <ul class="blockList">
  360. <li class="blockList"><a name="method.detail">
  361. <!-- -->
  362. </a>
  363. <h3>Method Detail</h3>
  364. <a name="getContentType--">
  365. <!-- -->
  366. </a>
  367. <ul class="blockList">
  368. <li class="blockList">
  369. <h4>getContentType</h4>
  370. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getContentType()</pre>
  371. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  372. <div class="block">Get the content type.</div>
  373. <dl>
  374. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  375. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true#getContentType--" title="class or interface in javax.activation">getContentType</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></code></dd>
  376. <dt><span class="returnLabel">Returns:</span></dt>
  377. <dd>A String.</dd>
  378. <dt><span class="simpleTagLabel">Since:</span></dt>
  379. <dd>1.0</dd>
  380. </dl>
  381. </li>
  382. </ul>
  383. <a name="getInputStream--">
  384. <!-- -->
  385. </a>
  386. <ul class="blockList">
  387. <li class="blockList">
  388. <h4>getInputStream</h4>
  389. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;getInputStream()
  390. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  391. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  392. <div class="block">Get the input stream.</div>
  393. <dl>
  394. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  395. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true#getInputStream--" title="class or interface in javax.activation">getInputStream</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></code></dd>
  396. <dt><span class="returnLabel">Returns:</span></dt>
  397. <dd>An InputStream.</dd>
  398. <dt><span class="throwsLabel">Throws:</span></dt>
  399. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - IOException</dd>
  400. <dt><span class="simpleTagLabel">Since:</span></dt>
  401. <dd>1.0</dd>
  402. </dl>
  403. </li>
  404. </ul>
  405. <a name="setName-java.lang.String-">
  406. <!-- -->
  407. </a>
  408. <ul class="blockList">
  409. <li class="blockList">
  410. <h4>setName</h4>
  411. <pre>public&nbsp;void&nbsp;setName(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
  412. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  413. <div class="block">Sets the name for this DataSource.</div>
  414. <dl>
  415. <dt><span class="paramLabel">Parameters:</span></dt>
  416. <dd><code>name</code> - The name.</dd>
  417. <dt><span class="simpleTagLabel">Since:</span></dt>
  418. <dd>1.3.1</dd>
  419. </dl>
  420. </li>
  421. </ul>
  422. <a name="getName--">
  423. <!-- -->
  424. </a>
  425. <ul class="blockList">
  426. <li class="blockList">
  427. <h4>getName</h4>
  428. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getName()</pre>
  429. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  430. <div class="block">Get the name.</div>
  431. <dl>
  432. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  433. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true#getName--" title="class or interface in javax.activation">getName</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></code></dd>
  434. <dt><span class="returnLabel">Returns:</span></dt>
  435. <dd>A String.</dd>
  436. <dt><span class="simpleTagLabel">Since:</span></dt>
  437. <dd>1.0</dd>
  438. </dl>
  439. </li>
  440. </ul>
  441. <a name="getOutputStream--">
  442. <!-- -->
  443. </a>
  444. <ul class="blockListLast">
  445. <li class="blockList">
  446. <h4>getOutputStream</h4>
  447. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;getOutputStream()</pre>
  448. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  449. <div class="block">Get the OutputStream to write to.</div>
  450. <dl>
  451. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  452. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true#getOutputStream--" title="class or interface in javax.activation">getOutputStream</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/javax/activation/DataSource.html?is-external=true" title="class or interface in javax.activation">DataSource</a></code></dd>
  453. <dt><span class="returnLabel">Returns:</span></dt>
  454. <dd>An OutputStream</dd>
  455. <dt><span class="simpleTagLabel">Since:</span></dt>
  456. <dd>1.0</dd>
  457. </dl>
  458. </li>
  459. </ul>
  460. </li>
  461. </ul>
  462. </li>
  463. </ul>
  464. </div>
  465. </div>
  466. <!-- ========= END OF CLASS DATA ========= -->
  467. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  468. <div class="bottomNav"><a name="navbar.bottom">
  469. <!-- -->
  470. </a>
  471. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  472. <a name="navbar.bottom.firstrow">
  473. <!-- -->
  474. </a>
  475. <ul class="navList" title="Navigation">
  476. <li><a href="../../../../overview-summary.html">Overview</a></li>
  477. <li><a href="package-summary.html">Package</a></li>
  478. <li class="navBarCell1Rev">Class</li>
  479. <li><a href="class-use/ByteArrayDataSource.html">Use</a></li>
  480. <li><a href="package-tree.html">Tree</a></li>
  481. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  482. <li><a href="../../../../index-all.html">Index</a></li>
  483. <li><a href="../../../../help-doc.html">Help</a></li>
  484. </ul>
  485. </div>
  486. <div class="subNav">
  487. <ul class="navList">
  488. <li>Prev&nbsp;Class</li>
  489. <li><a href="../../../../org/apache/commons/mail/DataSourceResolver.html" title="interface in org.apache.commons.mail"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  490. </ul>
  491. <ul class="navList">
  492. <li><a href="../../../../index.html?org/apache/commons/mail/ByteArrayDataSource.html" target="_top">Frames</a></li>
  493. <li><a href="ByteArrayDataSource.html" target="_top">No&nbsp;Frames</a></li>
  494. </ul>
  495. <ul class="navList" id="allclasses_navbar_bottom">
  496. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  497. </ul>
  498. <div>
  499. <script type="text/javascript"><!--
  500. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  501. if(window==top) {
  502. allClassesLink.style.display = "block";
  503. }
  504. else {
  505. allClassesLink.style.display = "none";
  506. }
  507. //-->
  508. </script>
  509. </div>
  510. <div>
  511. <ul class="subNavList">
  512. <li>Summary:&nbsp;</li>
  513. <li>Nested&nbsp;|&nbsp;</li>
  514. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  515. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  516. <li><a href="#method.summary">Method</a></li>
  517. </ul>
  518. <ul class="subNavList">
  519. <li>Detail:&nbsp;</li>
  520. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  521. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  522. <li><a href="#method.detail">Method</a></li>
  523. </ul>
  524. </div>
  525. <a name="skip.navbar.bottom">
  526. <!-- -->
  527. </a></div>
  528. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  529. <p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  530. </body>
  531. </html>