The TeaFile<(Of <(<'T>)>)> type exposes the following members.

Methods

  Name Description
Public method Static member Append
Opens the file in write mode and allows appending items to it. The filepointer is set to the end of the file.
Public method Close
Closes this file.
Public method Static member Create(Stream, String, NameValueCollection, Boolean)
Creates a TeaFile, using the specified stream as the underlying storage media.
Public method Static member Create(String, String, NameValueCollection, Boolean)
Create a new TeaFile for type T.
Public method Dispose
Releases all resources acquired by the instance.
Public method Flush
Flushes the file.
Public method Static member OpenMemoryMapping
Opens a memory mapping of the file using managed memory mapping.
Public method Static member OpenRawMemoryMapping
Opens a memory mapping of the file using unsafe memory mapping.
Public method Static member OpenRead(Stream, ItemDescriptionElements)
Opens a TeaFile for read.
Public method Static member OpenRead(String, ItemDescriptionElements)
Opens a TeaFile in read only mode.
Public method Static member OpenWrite(Stream, ItemDescriptionElements)
Opens a TeFile in write mode.
Public method Static member OpenWrite(String, ItemDescriptionElements)
Opens a TeFile in write mode.
Public method Read
Reads the next item from the file
Public method SetFilePointerToEnd
Sets the file pointer to the physical end of the file.
Public method SetFilePointerToItem
Set file pointer based on item index.
Public method ToString
Returns a String that represents the current Object.
(Overrides Object..::..ToString()()()().)
Public method Truncate
Removes all items from the file.
Public method Write(IEnumerable<(Of <<'(T>)>>))
Writes several items in to the file.
Public method Write(T)
Writes an item in to the file at the position of the file pointer.

See Also