Subversion Repositories javautils

Rev

Blame | Last modification | View Log | RSS feed

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_10) on Tue Nov 17 12:13:39 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. SharedByteArrayInputStream (JavaMail API documentation)
  9. </TITLE>
  10.  
  11. <META NAME="date" CONTENT="2009-11-17">
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  14.  
  15. <SCRIPT type="text/javascript">
  16. function windowTitle()
  17. {
  18.     if (location.href.indexOf('is-external=true') == -1) {
  19.         parent.document.title="SharedByteArrayInputStream (JavaMail API documentation)";
  20.     }
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. </NOSCRIPT>
  25.  
  26. </HEAD>
  27.  
  28. <BODY BGCOLOR="white" onload="windowTitle();">
  29. <HR>
  30.  
  31.  
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <A NAME="navbar_top"><!-- --></A>
  34. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  35. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  36. <TR>
  37. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  38. <A NAME="navbar_top_firstrow"><!-- --></A>
  39. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  40.   <TR ALIGN="center" VALIGN="top">
  41.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  42.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  43.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  44.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SharedByteArrayInputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  45.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  46.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  47.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  48.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  49.   </TR>
  50. </TABLE>
  51. </TD>
  52. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  53. </EM>
  54. </TD>
  55. </TR>
  56.  
  57. <TR>
  58. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  59. &nbsp;<A HREF="../../../javax/mail/util/ByteArrayDataSource.html" title="class in javax.mail.util"><B>PREV CLASS</B></A>&nbsp;
  60. &nbsp;<A HREF="../../../javax/mail/util/SharedFileInputStream.html" title="class in javax.mail.util"><B>NEXT CLASS</B></A></FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../../index.html?javax/mail/util/SharedByteArrayInputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="SharedByteArrayInputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  64. &nbsp;<SCRIPT type="text/javascript">
  65.   <!--
  66.   if(window==top) {
  67.     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  68.   }
  69.   //-->
  70. </SCRIPT>
  71. <NOSCRIPT>
  72.   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  73. </NOSCRIPT>
  74.  
  75.  
  76. </FONT></TD>
  77. </TR>
  78. <TR>
  79. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  80.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  81. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  82. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  83. </TR>
  84. </TABLE>
  85. <A NAME="skip-navbar_top"></A>
  86. <!-- ========= END OF TOP NAVBAR ========= -->
  87.  
  88. <HR>
  89. <!-- ======== START OF CLASS DATA ======== -->
  90. <H2>
  91. <FONT SIZE="-1">
  92. javax.mail.util</FONT>
  93. <BR>
  94. Class SharedByteArrayInputStream</H2>
  95. <PRE>
  96. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  97.   <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">java.io.InputStream</A>
  98.       <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true" title="class or interface in java.io">java.io.ByteArrayInputStream</A>
  99.           <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>javax.mail.util.SharedByteArrayInputStream</B>
  100. </PRE>
  101. <DL>
  102. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A>, <A HREF="../../../javax/mail/internet/SharedInputStream.html" title="interface in javax.mail.internet">SharedInputStream</A></DD>
  103. </DL>
  104. <HR>
  105. <DL>
  106. <DT><PRE>public class <B>SharedByteArrayInputStream</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true" title="class or interface in java.io">ByteArrayInputStream</A><DT>implements <A HREF="../../../javax/mail/internet/SharedInputStream.html" title="interface in javax.mail.internet">SharedInputStream</A></DL>
  107. </PRE>
  108.  
  109. <P>
  110. A ByteArrayInputStream that implements the SharedInputStream interface,
  111.  allowing the underlying byte array to be shared between multiple readers.
  112. <P>
  113.  
  114. <P>
  115. <DL>
  116. <DT><B>Since:</B></DT>
  117.   <DD>JavaMail 1.4</DD>
  118. </DL>
  119. <HR>
  120.  
  121. <P>
  122. <!-- =========== FIELD SUMMARY =========== -->
  123.  
  124. <A NAME="field_summary"><!-- --></A>
  125. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  126. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  127. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  128. <B>Field Summary</B></FONT></TH>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>protected &nbsp;int</CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../javax/mail/util/SharedByteArrayInputStream.html#start">start</A></B></CODE>
  134.  
  135. <BR>
  136. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Position within shared buffer that this stream starts at.</TD>
  137. </TR>
  138. </TABLE>
  139. &nbsp;<A NAME="fields_inherited_from_class_java.io.ByteArrayInputStream"><!-- --></A>
  140. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  141. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  142. <TH ALIGN="left"><B>Fields inherited from class java.io.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true" title="class or interface in java.io">ByteArrayInputStream</A></B></TH>
  143. </TR>
  144. <TR BGCOLOR="white" CLASS="TableRowColor">
  145. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#buf" title="class or interface in java.io">buf</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#count" title="class or interface in java.io">count</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#mark" title="class or interface in java.io">mark</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#pos" title="class or interface in java.io">pos</A></CODE></TD>
  146. </TR>
  147. </TABLE>
  148. &nbsp;
  149. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  150.  
  151. <A NAME="constructor_summary"><!-- --></A>
  152. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  153. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  154. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  155. <B>Constructor Summary</B></FONT></TH>
  156. </TR>
  157. <TR BGCOLOR="white" CLASS="TableRowColor">
  158. <TD><CODE><B><A HREF="../../../javax/mail/util/SharedByteArrayInputStream.html#SharedByteArrayInputStream(byte[])">SharedByteArrayInputStream</A></B>(byte[]&nbsp;buf)</CODE>
  159.  
  160. <BR>
  161. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a SharedByteArrayInputStream representing the entire
  162.  byte array.</TD>
  163. </TR>
  164. <TR BGCOLOR="white" CLASS="TableRowColor">
  165. <TD><CODE><B><A HREF="../../../javax/mail/util/SharedByteArrayInputStream.html#SharedByteArrayInputStream(byte[], int, int)">SharedByteArrayInputStream</A></B>(byte[]&nbsp;buf,
  166.                            int&nbsp;offset,
  167.                            int&nbsp;length)</CODE>
  168.  
  169. <BR>
  170. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a SharedByteArrayInputStream representing the part
  171.  of the byte array from <code>offset</code> for <code>length</code>
  172.  bytes.</TD>
  173. </TR>
  174. </TABLE>
  175. &nbsp;
  176. <!-- ========== METHOD SUMMARY =========== -->
  177.  
  178. <A NAME="method_summary"><!-- --></A>
  179. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  180. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  181. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  182. <B>Method Summary</B></FONT></TH>
  183. </TR>
  184. <TR BGCOLOR="white" CLASS="TableRowColor">
  185. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  186. <CODE>&nbsp;long</CODE></FONT></TD>
  187. <TD><CODE><B><A HREF="../../../javax/mail/util/SharedByteArrayInputStream.html#getPosition()">getPosition</A></B>()</CODE>
  188.  
  189. <BR>
  190. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current position in the InputStream, as an
  191.  offset from the beginning of the InputStream.</TD>
  192. </TR>
  193. <TR BGCOLOR="white" CLASS="TableRowColor">
  194. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  195. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
  196. <TD><CODE><B><A HREF="../../../javax/mail/util/SharedByteArrayInputStream.html#newStream(long, long)">newStream</A></B>(long&nbsp;start,
  197.           long&nbsp;end)</CODE>
  198.  
  199. <BR>
  200. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a new InputStream representing a subset of the data
  201.  from this InputStream, starting at <code>start</code> (inclusive)
  202.  up to <code>end</code> (exclusive).</TD>
  203. </TR>
  204. </TABLE>
  205. &nbsp;<A NAME="methods_inherited_from_class_java.io.ByteArrayInputStream"><!-- --></A>
  206. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  207. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  208. <TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true" title="class or interface in java.io">ByteArrayInputStream</A></B></TH>
  209. </TR>
  210. <TR BGCOLOR="white" CLASS="TableRowColor">
  211. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#available()" title="class or interface in java.io">available</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#close()" title="class or interface in java.io">close</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#mark(int)" title="class or interface in java.io">mark</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#markSupported()" title="class or interface in java.io">markSupported</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#read()" title="class or interface in java.io">read</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#read(byte[], int, int)" title="class or interface in java.io">read</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#reset()" title="class or interface in java.io">reset</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/ByteArrayInputStream.html?is-external=true#skip(long)" title="class or interface in java.io">skip</A></CODE></TD>
  212. </TR>
  213. </TABLE>
  214. &nbsp;<A NAME="methods_inherited_from_class_java.io.InputStream"><!-- --></A>
  215. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  216. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  217. <TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></B></TH>
  218. </TR>
  219. <TR BGCOLOR="white" CLASS="TableRowColor">
  220. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true#read(byte[])" title="class or interface in java.io">read</A></CODE></TD>
  221. </TR>
  222. </TABLE>
  223. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  224. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  225. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  226. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  227. </TR>
  228. <TR BGCOLOR="white" CLASS="TableRowColor">
  229. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/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://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  230. </TR>
  231. </TABLE>
  232. &nbsp;
  233. <P>
  234.  
  235. <!-- ============ FIELD DETAIL =========== -->
  236.  
  237. <A NAME="field_detail"><!-- --></A>
  238. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  239. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  240. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  241. <B>Field Detail</B></FONT></TH>
  242. </TR>
  243. </TABLE>
  244.  
  245. <A NAME="start"><!-- --></A><H3>
  246. start</H3>
  247. <PRE>
  248. protected int <B>start</B></PRE>
  249. <DL>
  250. <DD>Position within shared buffer that this stream starts at.
  251. <P>
  252. <DL>
  253. </DL>
  254. </DL>
  255.  
  256. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  257.  
  258. <A NAME="constructor_detail"><!-- --></A>
  259. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  260. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  261. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  262. <B>Constructor Detail</B></FONT></TH>
  263. </TR>
  264. </TABLE>
  265.  
  266. <A NAME="SharedByteArrayInputStream(byte[])"><!-- --></A><H3>
  267. SharedByteArrayInputStream</H3>
  268. <PRE>
  269. public <B>SharedByteArrayInputStream</B>(byte[]&nbsp;buf)</PRE>
  270. <DL>
  271. <DD>Create a SharedByteArrayInputStream representing the entire
  272.  byte array.
  273. <P>
  274. <DL>
  275. <DT><B>Parameters:</B><DD><CODE>buf</CODE> - the byte array</DL>
  276. </DL>
  277. <HR>
  278.  
  279. <A NAME="SharedByteArrayInputStream(byte[], int, int)"><!-- --></A><H3>
  280. SharedByteArrayInputStream</H3>
  281. <PRE>
  282. public <B>SharedByteArrayInputStream</B>(byte[]&nbsp;buf,
  283.                                   int&nbsp;offset,
  284.                                   int&nbsp;length)</PRE>
  285. <DL>
  286. <DD>Create a SharedByteArrayInputStream representing the part
  287.  of the byte array from <code>offset</code> for <code>length</code>
  288.  bytes.
  289. <P>
  290. <DL>
  291. <DT><B>Parameters:</B><DD><CODE>buf</CODE> - the byte array<DD><CODE>offset</CODE> - offset in byte array to first byte to include<DD><CODE>length</CODE> - number of bytes to include</DL>
  292. </DL>
  293.  
  294. <!-- ============ METHOD DETAIL ========== -->
  295.  
  296. <A NAME="method_detail"><!-- --></A>
  297. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  298. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  299. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  300. <B>Method Detail</B></FONT></TH>
  301. </TR>
  302. </TABLE>
  303.  
  304. <A NAME="getPosition()"><!-- --></A><H3>
  305. getPosition</H3>
  306. <PRE>
  307. public long <B>getPosition</B>()</PRE>
  308. <DL>
  309. <DD>Return the current position in the InputStream, as an
  310.  offset from the beginning of the InputStream.
  311. <P>
  312. <DD><DL>
  313. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/mail/internet/SharedInputStream.html#getPosition()">getPosition</A></CODE> in interface <CODE><A HREF="../../../javax/mail/internet/SharedInputStream.html" title="interface in javax.mail.internet">SharedInputStream</A></CODE></DL>
  314. </DD>
  315. <DD><DL>
  316.  
  317. <DT><B>Returns:</B><DD>the current position</DL>
  318. </DD>
  319. </DL>
  320. <HR>
  321.  
  322. <A NAME="newStream(long, long)"><!-- --></A><H3>
  323. newStream</H3>
  324. <PRE>
  325. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>newStream</B>(long&nbsp;start,
  326.                              long&nbsp;end)</PRE>
  327. <DL>
  328. <DD>Return a new InputStream representing a subset of the data
  329.  from this InputStream, starting at <code>start</code> (inclusive)
  330.  up to <code>end</code> (exclusive).  <code>start</code> must be
  331.  non-negative.  If <code>end</code> is -1, the new stream ends
  332.  at the same place as this stream.  The returned InputStream
  333.  will also implement the SharedInputStream interface.
  334. <P>
  335. <DD><DL>
  336. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/mail/internet/SharedInputStream.html#newStream(long, long)">newStream</A></CODE> in interface <CODE><A HREF="../../../javax/mail/internet/SharedInputStream.html" title="interface in javax.mail.internet">SharedInputStream</A></CODE></DL>
  337. </DD>
  338. <DD><DL>
  339. <DT><B>Parameters:</B><DD><CODE>start</CODE> - the starting position<DD><CODE>end</CODE> - the ending position + 1
  340. <DT><B>Returns:</B><DD>the new stream</DL>
  341. </DD>
  342. </DL>
  343. <!-- ========= END OF CLASS DATA ========= -->
  344. <HR>
  345.  
  346.  
  347. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  348. <A NAME="navbar_bottom"><!-- --></A>
  349. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  350. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  351. <TR>
  352. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  353. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  354. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  355.   <TR ALIGN="center" VALIGN="top">
  356.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  357.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  358.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  359.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SharedByteArrayInputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  360.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  361.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  362.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  363.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  364.   </TR>
  365. </TABLE>
  366. </TD>
  367. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  368. </EM>
  369. </TD>
  370. </TR>
  371.  
  372. <TR>
  373. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  374. &nbsp;<A HREF="../../../javax/mail/util/ByteArrayDataSource.html" title="class in javax.mail.util"><B>PREV CLASS</B></A>&nbsp;
  375. &nbsp;<A HREF="../../../javax/mail/util/SharedFileInputStream.html" title="class in javax.mail.util"><B>NEXT CLASS</B></A></FONT></TD>
  376. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  377.   <A HREF="../../../index.html?javax/mail/util/SharedByteArrayInputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  378. &nbsp;<A HREF="SharedByteArrayInputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  379. &nbsp;<SCRIPT type="text/javascript">
  380.   <!--
  381.   if(window==top) {
  382.     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  383.   }
  384.   //-->
  385. </SCRIPT>
  386. <NOSCRIPT>
  387.   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  388. </NOSCRIPT>
  389.  
  390.  
  391. </FONT></TD>
  392. </TR>
  393. <TR>
  394. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  395.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  396. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  397. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  398. </TR>
  399. </TABLE>
  400. <A NAME="skip-navbar_bottom"></A>
  401. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  402.  
  403. <HR>
  404. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  405. </BODY>
  406. </HTML>
  407.