source: Include/Classes/System/IO/Stream.ab@ 272

Last change on this file since 272 was 271, checked in by dai, 17 years ago

SHFILEOPSTRUCT.hWnd → SHFILEOPSTRUCT.hwnd
System.IOに属するクラスに名前空間を適用した。

File size: 2.0 KB
RevLine 
[271]1Namespace System
2Namespace IO
[111]3
[271]4
[112]5Class Stream
[119]6Public 'Protected
[115]7 Sub Stream(): End Sub
[114]8Public
[119]9 Virtual Sub ~Stream()
[248]10 This.Close()
[119]11 End Sub
12Public
13 Abstract Function CanRead() As Boolean
14 Abstract Function CanSeek() As Boolean
[111]15
[119]16 Virtual Function CanTimeout() As Boolean
17 Return True
18 End Function
19
20 Abstract Function CanWrite() As Boolean
21 Abstract Function Length() As Int64
22 Abstract Sub Position(value As Int64)
23 Abstract Function Position() As Int64
24
25 Virtual Sub ReadTimeout(value As Long)
26 ' Throw InvalidOperationException
27 End Sub
28
29 Virtual Function ReadTimeout() As Long
30 ' Throw InvalidOperationException
31 End Function
32
33 Virtual Sub WriteTimeout(value As Long)
34 ' Throw InvalidOperationException
35 End Sub
36
37 Virtual Function WriteTimeout() As Long
38 ' Throw InvalidOperationException
39 End Function
40
[112]41Public
[262]42 Virtual Function BeginRead(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult: End Function
43 Virtual Function BeginWrite(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult: End Function
[112]44 Virtual Sub Close(): End Sub
[262]45 Virtual Function EndRead(ByRef asyncResult As System.IAsyncResult) As Long: End Function
46 Virtual Sub EndWrite(ByRef asyncResult As System.IAsyncResult): End Sub
[119]47 Abstract Sub Flush()
48 Abstract Function Read(ByRef buffer[] As Byte, offset As Long, count As Long) As Long
[112]49
[119]50 Virtual Function ReadByte() As Long
51 Dim b As Byte
[252]52 Dim ret = Read(b, 0, 1)
[119]53 If ret <> 0 Then
54 Return b
55 Else
56 Return -1
57 End If
58 End Function
59
60 Abstract Function Seek(offset As Int64, origin As SeekOrigin) As Long
[248]61 Abstract Sub SetLength(value As Int64)
[119]62 Abstract Sub Write(ByRef buffer[] As Byte, offset As Long, count As Long)
63
64 Virtual Sub WriteByte(b As Byte)
[252]65 Write(b, 0, 1)
[119]66 End Sub
[112]67Protected
[262]68 Virtual Function CreateWaitHandle() As System.Threading.WaitHandle: End Function
[112]69End Class
[271]70
71
72End Namespace
73End Namespace
Note: See TracBrowser for help on using the repository browser.