604 lines
33 KiB
HTML
604 lines
33 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="nl">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_40) on Tue Oct 15 12:25:31 CEST 2013 -->
|
|
<title>IsolatedStorageFileStream</title>
|
|
<meta name="date" content="2013-10-15">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="IsolatedStorageFileStream";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/IsolatedStorageFileStream.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage"><span class="strong">Prev Class</span></a></li>
|
|
<li>Next Class</li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?System/IO/IsolatedStorage/IsolatedStorageFileStream.html" target="_top">Frames</a></li>
|
|
<li><a href="IsolatedStorageFileStream.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#fields_inherited_from_class_System.IO.Stream">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">System.IO.IsolatedStorage</div>
|
|
<h2 title="Class IsolatedStorageFileStream" class="title">Class IsolatedStorageFileStream</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="../../../System/IO/Stream.html" title="class in System.IO">System.IO.Stream</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="../../../System/IO/FileStream.html" title="class in System.IO">System.IO.FileStream</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>System.IO.IsolatedStorage.IsolatedStorageFileStream</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><a href="../../../System/IDisposable.html" title="interface in System">IDisposable</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">IsolatedStorageFileStream</span>
|
|
extends <a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></pre>
|
|
<dl><dt><span class="strong">Author:</span></dt>
|
|
<dd>Halofreak1990</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="fields_inherited_from_class_System.IO.Stream">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Fields inherited from class System.IO.<a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></h3>
|
|
<code><a href="../../../System/IO/Stream.html#Null">Null</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#IsolatedStorageFileStream(java.lang.String, System.IO.FileMode, java.util.EnumSet, java.util.EnumSet, System.IO.IsolatedStorage.IsolatedStorageFile)">IsolatedStorageFileStream</a></strong>(java.lang.String path,
|
|
<a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode,
|
|
java.util.EnumSet<<a href="../../../System/IO/FileAccess.html" title="enum in System.IO">FileAccess</a>> access,
|
|
java.util.EnumSet<<a href="../../../System/IO/FileShare.html" title="enum in System.IO">FileShare</a>> share,
|
|
<a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> isf)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#IsolatedStorageFileStream(java.lang.String, System.IO.FileMode, java.util.EnumSet, System.IO.IsolatedStorage.IsolatedStorageFile)">IsolatedStorageFileStream</a></strong>(java.lang.String path,
|
|
<a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode,
|
|
java.util.EnumSet<<a href="../../../System/IO/FileAccess.html" title="enum in System.IO">FileAccess</a>> access,
|
|
<a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> isf)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#IsolatedStorageFileStream(java.lang.String, System.IO.FileMode, System.IO.IsolatedStorage.IsolatedStorageFile)">IsolatedStorageFileStream</a></strong>(java.lang.String path,
|
|
<a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode,
|
|
<a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> isf)</code>
|
|
<div class="block">Initializes a new instance of the System.IO.IsolatedStorage.IsolatedStorageFileStream class giving access to the file designated by path, in the specified mode, and in the context of the System.IO.IsolatedStorage.IsolatedStorageFile specified by isf.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#BeginRead(byte[], int, int, System.AsyncCallback, java.lang.Object)">BeginRead</a></strong>(byte[] buffer,
|
|
int offset,
|
|
int numBytes,
|
|
<a href="../../../System/AsyncCallback.html" title="class in System">AsyncCallback</a> userCallback,
|
|
java.lang.Object stateObject)</code>
|
|
<div class="block">Begins an asynchronous read.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#BeginWrite(byte[], int, int, System.AsyncCallback, java.lang.Object)">BeginWrite</a></strong>(byte[] buffer,
|
|
int offset,
|
|
int numBytes,
|
|
<a href="../../../System/AsyncCallback.html" title="class in System">AsyncCallback</a> userCallback,
|
|
java.lang.Object stateObject)</code>
|
|
<div class="block">Begins an asynchronous write.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#EndRead(System.IAsyncResult)">EndRead</a></strong>(<a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a> asyncResult)</code>
|
|
<div class="block">Ends a pending asynchronous read request.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#EndWrite(System.IAsyncResult)">EndWrite</a></strong>(<a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a> asyncResult)</code>
|
|
<div class="block">Ends an asynchronous write.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#Flush()">Flush</a></strong>()</code>
|
|
<div class="block">Updates the file with the current state of the buffer then clears the buffer.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#Read(byte[], int, int)">Read</a></strong>(byte[] buffer,
|
|
int offset,
|
|
int count)</code>
|
|
<div class="block">Copies bytes from the current buffered IsolatedStorageFileStream object to an array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#ReadByte()">ReadByte</a></strong>()</code>
|
|
<div class="block">Reads a single byte from the IsolatedStorageFileStream object in isolated storage.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#Seek(long, System.IO.SeekOrigin)">Seek</a></strong>(long offset,
|
|
<a href="../../../System/IO/SeekOrigin.html" title="enum in System.IO">SeekOrigin</a> origin)</code>
|
|
<div class="block">When overridden in a derived class, sets the position within the current stream.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#SetLength(long)">SetLength</a></strong>(long value)</code>
|
|
<div class="block">Sets the length of this IsolatedStorageFileStream object to the specified value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#Write(byte[], int, int)">Write</a></strong>(byte[] buffer,
|
|
int offset,
|
|
int count)</code>
|
|
<div class="block">Writes a block of bytes to the IsolatedStorageFileStream object using data read from a byte array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html#WriteByte(byte)">WriteByte</a></strong>(byte value)</code>
|
|
<div class="block">Writes a single byte to the IsolatedStorageFileStream object.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_System.IO.FileStream">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class System.IO.<a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></h3>
|
|
<code><a href="../../../System/IO/FileStream.html#CanRead()">CanRead</a>, <a href="../../../System/IO/FileStream.html#CanSeek()">CanSeek</a>, <a href="../../../System/IO/FileStream.html#CanWrite()">CanWrite</a>, <a href="../../../System/IO/FileStream.html#finalize()">finalize</a>, <a href="../../../System/IO/FileStream.html#getName()">getName</a>, <a href="../../../System/IO/FileStream.html#getPosition()">getPosition</a>, <a href="../../../System/IO/FileStream.html#Length()">Length</a>, <a href="../../../System/IO/FileStream.html#setPosition(long)">setPosition</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_System.IO.Stream">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class System.IO.<a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></h3>
|
|
<code><a href="../../../System/IO/Stream.html#CanTimeout()">CanTimeout</a>, <a href="../../../System/IO/Stream.html#Close()">Close</a>, <a href="../../../System/IO/Stream.html#Dispose()">Dispose</a>, <a href="../../../System/IO/Stream.html#Dispose(boolean)">Dispose</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="IsolatedStorageFileStream(java.lang.String, System.IO.FileMode, java.util.EnumSet, java.util.EnumSet, System.IO.IsolatedStorage.IsolatedStorageFile)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>IsolatedStorageFileStream</h4>
|
|
<pre>public IsolatedStorageFileStream(java.lang.String path,
|
|
<a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode,
|
|
java.util.EnumSet<<a href="../../../System/IO/FileAccess.html" title="enum in System.IO">FileAccess</a>> access,
|
|
java.util.EnumSet<<a href="../../../System/IO/FileShare.html" title="enum in System.IO">FileShare</a>> share,
|
|
<a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> isf)</pre>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - </dd><dd><code>mode</code> - </dd><dd><code>access</code> - </dd><dd><code>share</code> - </dd><dd><code>isf</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="IsolatedStorageFileStream(java.lang.String, System.IO.FileMode, java.util.EnumSet, System.IO.IsolatedStorage.IsolatedStorageFile)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>IsolatedStorageFileStream</h4>
|
|
<pre>public IsolatedStorageFileStream(java.lang.String path,
|
|
<a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode,
|
|
java.util.EnumSet<<a href="../../../System/IO/FileAccess.html" title="enum in System.IO">FileAccess</a>> access,
|
|
<a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> isf)</pre>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - </dd><dd><code>mode</code> - </dd><dd><code>access</code> - </dd><dd><code>isf</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="IsolatedStorageFileStream(java.lang.String, System.IO.FileMode, System.IO.IsolatedStorage.IsolatedStorageFile)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>IsolatedStorageFileStream</h4>
|
|
<pre>public IsolatedStorageFileStream(java.lang.String path,
|
|
<a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode,
|
|
<a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> isf)</pre>
|
|
<div class="block">Initializes a new instance of the System.IO.IsolatedStorage.IsolatedStorageFileStream class giving access to the file designated by path, in the specified mode, and in the context of the System.IO.IsolatedStorage.IsolatedStorageFile specified by isf.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - The relative path of the file within isolated storage.</dd><dd><code>mode</code> - One of the System.IO.FileMode values.</dd><dd><code>isf</code> - The System.IO.IsolatedStorage.IsolatedStorageFile in which to open the System.IO.IsolatedStorage.IsolatedStorageFileStream.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage">IsolatedStorageException</a></code> - isf has been disposed. -or-path is badly formed.-or-path is null. -or-isf is null.-orThe directory in path does not exist.-or-No file was found and the mode is set to System.IO.FileMode.Open.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="BeginRead(byte[], int, int, System.AsyncCallback, java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>BeginRead</h4>
|
|
<pre>public <a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a> BeginRead(byte[] buffer,
|
|
int offset,
|
|
int numBytes,
|
|
<a href="../../../System/AsyncCallback.html" title="class in System">AsyncCallback</a> userCallback,
|
|
java.lang.Object stateObject)</pre>
|
|
<div class="block">Begins an asynchronous read.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/Stream.html#BeginRead(byte[], int, int, System.AsyncCallback, java.lang.Object)">BeginRead</a></code> in class <code><a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>buffer</code> - The buffer to read data into.</dd><dd><code>offset</code> - The byte offset in buffer at which to begin reading.</dd><dd><code>numBytes</code> - The maximum number of bytes to read.</dd><dd><code>userCallback</code> - The method to call when the asynchronous read operation is completed. This parameter is optional.</dd><dd><code>stateObject</code> - The status of the asynchronous read.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>An IAsyncResult object that represents the asynchronous read, which is possibly still pending. This IAsyncResult must be passed to this stream's EndRead method to determine how many bytes were read. This can be done either by the same code that called BeginRead or in a callback passed to BeginRead.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/IO/IOException.html" title="class in System.IO">IOException</a></code> - An asynchronous read was attempted past the end of the file.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="BeginWrite(byte[], int, int, System.AsyncCallback, java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>BeginWrite</h4>
|
|
<pre>public <a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a> BeginWrite(byte[] buffer,
|
|
int offset,
|
|
int numBytes,
|
|
<a href="../../../System/AsyncCallback.html" title="class in System">AsyncCallback</a> userCallback,
|
|
java.lang.Object stateObject)</pre>
|
|
<div class="block">Begins an asynchronous write.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/Stream.html#BeginWrite(byte[], int, int, System.AsyncCallback, java.lang.Object)">BeginWrite</a></code> in class <code><a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>buffer</code> - The buffer to write data to.</dd><dd><code>offset</code> - The byte offset in buffer at which to begin writing.</dd><dd><code>numBytes</code> - The maximum number of bytes to write.</dd><dd><code>userCallback</code> - The method to call when the asynchronous write operation is completed. This parameter is optional.</dd><dd><code>stateObject</code> - The status of the asynchronous write.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>An IAsyncResult that represents the asynchronous write, which is possibly still pending. This IAsyncResult must be passed to this stream's EndWrite method to ensure that the write is complete, then frees resources appropriately. This can be done either by the same code that called BeginWrite or in a callback passed to BeginWrite.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/IO/IOException.html" title="class in System.IO">IOException</a></code> - An asynchronous read was attempted past the end of the file.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="EndRead(System.IAsyncResult)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>EndRead</h4>
|
|
<pre>public int EndRead(<a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a> asyncResult)</pre>
|
|
<div class="block">Ends a pending asynchronous read request.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/Stream.html#EndRead(System.IAsyncResult)">EndRead</a></code> in class <code><a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>asyncResult</code> - The pending asynchronous request.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>The number of bytes read from the stream, between zero and the number of requested bytes. Streams will only return zero at the end of the stream. Otherwise, they will block until at least one byte is available.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - The asyncResult is null.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="EndWrite(System.IAsyncResult)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>EndWrite</h4>
|
|
<pre>public void EndWrite(<a href="../../../System/IAsyncResult.html" title="interface in System">IAsyncResult</a> asyncResult)</pre>
|
|
<div class="block">Ends an asynchronous write.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/Stream.html#EndWrite(System.IAsyncResult)">EndWrite</a></code> in class <code><a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>asyncResult</code> - The pending asynchronous I/O request to end.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - The asyncResult parameter is null.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Flush()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Flush</h4>
|
|
<pre>public void Flush()</pre>
|
|
<div class="block">Updates the file with the current state of the buffer then clears the buffer.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/FileStream.html#Flush()">Flush</a></code> in class <code><a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Read(byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Read</h4>
|
|
<pre>public int Read(byte[] buffer,
|
|
int offset,
|
|
int count)</pre>
|
|
<div class="block">Copies bytes from the current buffered IsolatedStorageFileStream object to an array.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/FileStream.html#Read(byte[], int, int)">Read</a></code> in class <code><a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>buffer</code> - The buffer to read.</dd><dd><code>offset</code> - The offset in the buffer at which to begin writing.</dd><dd><code>count</code> - The maximum number of bytes to read.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream is reached.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ReadByte()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ReadByte</h4>
|
|
<pre>public int ReadByte()</pre>
|
|
<div class="block">Reads a single byte from the IsolatedStorageFileStream object in isolated storage.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/Stream.html#ReadByte()">ReadByte</a></code> in class <code><a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></code></dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>The 8-bit unsigned integer value read from the isolated storage file.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Seek(long, System.IO.SeekOrigin)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Seek</h4>
|
|
<pre>public long Seek(long offset,
|
|
<a href="../../../System/IO/SeekOrigin.html" title="enum in System.IO">SeekOrigin</a> origin)</pre>
|
|
<div class="block"><strong>Description copied from class: <code><a href="../../../System/IO/Stream.html#Seek(long, System.IO.SeekOrigin)">Stream</a></code></strong></div>
|
|
<div class="block">When overridden in a derived class, sets the position within the current stream.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/FileStream.html#Seek(long, System.IO.SeekOrigin)">Seek</a></code> in class <code><a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>offset</code> - </dd><dd><code>origin</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="SetLength(long)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>SetLength</h4>
|
|
<pre>public void SetLength(long value)</pre>
|
|
<div class="block">Sets the length of this IsolatedStorageFileStream object to the specified value.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/FileStream.html#SetLength(long)">SetLength</a></code> in class <code><a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The new length of the IsolatedStorageFileStream object.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="Write(byte[], int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Write</h4>
|
|
<pre>public void Write(byte[] buffer,
|
|
int offset,
|
|
int count)</pre>
|
|
<div class="block">Writes a block of bytes to the IsolatedStorageFileStream object using data read from a byte array.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/FileStream.html#Write(byte[], int, int)">Write</a></code> in class <code><a href="../../../System/IO/FileStream.html" title="class in System.IO">FileStream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>buffer</code> - The buffer to write.</dd><dd><code>offset</code> - The byte offset in buffer from which to begin.</dd><dd><code>count</code> - The maximum number of bytes to write.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - buffer is null.</dd>
|
|
<dd><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage">IsolatedStorageException</a></code> - The write attempt exceeds the quota for the IsolatedStorageFileStream object.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="WriteByte(byte)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>WriteByte</h4>
|
|
<pre>public void WriteByte(byte value)</pre>
|
|
<div class="block">Writes a single byte to the IsolatedStorageFileStream object.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../../../System/IO/Stream.html#WriteByte(byte)">WriteByte</a></code> in class <code><a href="../../../System/IO/Stream.html" title="class in System.IO">Stream</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The byte value to write to the isolated storage file.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage">IsolatedStorageException</a></code> - The write attempt exceeds the quota for the IsolatedStorageFileStream object.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/IsolatedStorageFileStream.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage"><span class="strong">Prev Class</span></a></li>
|
|
<li>Next Class</li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?System/IO/IsolatedStorage/IsolatedStorageFileStream.html" target="_top">Frames</a></li>
|
|
<li><a href="IsolatedStorageFileStream.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#fields_inherited_from_class_System.IO.Stream">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|