vspyx.IO
Package Contents
Classes
BufferedInputStream |
|
FileInputStream |
|
FileOutputStream |
|
FileStream |
|
Filesystem |
|
InputOutputStream |
|
InputStream |
|
MemoryInputOutputStream |
|
MemoryMappedFile |
|
Enum where members are also (and must be) ints |
|
Module |
|
OutputStream |
|
SeekableInputOutputStream |
|
SeekableInputStream |
|
SeekableInputSubstream |
|
SeekableOutputStream |
|
SeekableOutputSubstream |
|
SeekableStream |
|
Stream |
|
TextReader |
|
ZstdOutputStream |
- class vspyx.IO.BufferedInputStream
Bases:
SeekableInputStream
BufferedInputStream
- class vspyx.IO.FileInputStream
Bases:
FileStream
,SeekableInputStream
FileInputStream
- class vspyx.IO.FileOutputStream
Bases:
FileStream
,SeekableOutputStream
FileOutputStream
- class vspyx.IO.FileStream
Bases:
Stream
FileStream
- FilePath :str
- Size :int
- UnixModifiedTime :int
- class vspyx.IO.Filesystem
Bases:
vspyx.Core.Object
Filesystem
- AbsolutePath(self, path: str) str
- CanonicalPath(self, path: str) str
- CombinePaths(self, path1: str, path2: str) str
- ComparePaths(self, path1: str, path2: str) int
- DirectoryExists(self, path: str) bool
- EnumerateDirectory(self, path: str) List[str]
- FileExists(self, path: str) bool
- GetExtensionOfPath(self, path: str) str
- GetFilenameOfPath(self, path: str) str
- GetNumericAttribute(self, path: str, key: str) vspyx.Core.Numeric
- GetParentPathOfPath(self, path: str) str
- GetRootDirectoryOfPath(self, path: str) str
- GetRootNameOfPath(self, path: str) str
- GetRootPathOfPath(self, path: str) str
- GetStemOfPath(self, path: str) str
- GetStringAttribute(self, path: str, key: str) str
- MakeDirectory(self, path: str) Any
- OpenFileForRead(self, path: str) FileInputStream
- OpenFileForWrite(self, path: str) FileOutputStream
- OpenMemoryMappedFile(self, path: str, writable: bool) MemoryMappedFile
- OpenMemoryMappedFile(self, path: str, writable: bool, writableFileSize: Any) MemoryMappedFile
- PathIsAbsolute(self, path: str) bool
- PathIsRelative(self, path: str) bool
- RelativePath(self, relativeFrom: str, path: str) str
- Remove(self, path: str) Any
- RemoveAll(self, path: str) Any
- SetNumericAttribute(self, path: str, key: str, value: vspyx.Core.Numeric) Any
- SetStringAttribute(self, path: str, key: str, value: str) Any
- SystemAbsolutePath(self, path: str) str
- class vspyx.IO.InputOutputStream
Bases:
InputStream
,OutputStream
InputOutputStream
- class vspyx.IO.InputStream
Bases:
Stream
InputStream
- AvailableBytes :int
- Read(self, buffer: Any, len: int) int
- class vspyx.IO.MemoryInputOutputStream
Bases:
SeekableInputStream
,SeekableOutputStream
MemoryInputOutputStream
- class vspyx.IO.MemoryMappedFile
Bases:
FileStream
MemoryMappedFile
- GetView(self, offset: int, size: int) vspyx.Core.BytesView
- class vspyx.IO.Mode
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- Append = 2
- Read = 0
- UpdateAppend = 5
- UpdateRead = 3
- UpdateWrite = 4
- Write = 1
- class vspyx.IO.Module
Bases:
vspyx.Core.Module
Module
- AppDataFilesystem :Filesystem
- AppDataFilesystemRoot :str
- BuiltInFilesystem :Filesystem
- BuiltInFilesystemIsOSFilesystem :bool
- BuiltInFilesystemRoot :str
- OSFilesystem :Filesystem
- SetupFilesystem :Filesystem
- UserFilesystem :Filesystem
- UserFilesystemRoot :str
- NewChrootFilesystem(self, systemPath: str) Filesystem
- NewTemporaryFilesystem(self) Filesystem
- OpenFileForRead(self, path: str) FileInputStream
- OpenFileForWrite(self, path: str) FileOutputStream
- OpenMemoryMappedFile(self, path: str, writable: bool) MemoryMappedFile
- OpenMemoryMappedFile(self, path: str, writable: bool, writableFileSize: Any) MemoryMappedFile
- static SetAppDataFilesystemRootOverride(path: str) Any
- static SetBuiltInFilesystemRootOverride(path: str) Any
- static SetUserFilesystemRootOverride(path: str) Any
- class vspyx.IO.OutputStream
Bases:
Stream
OutputStream
- Flush(self) Any
- Write(self, buffer: Any, len: int) int
- class vspyx.IO.SeekableInputOutputStream
Bases:
FileInputStream
,FileOutputStream
SeekableInputOutputStream
- class vspyx.IO.SeekableInputStream
Bases:
InputStream
,SeekableStream
SeekableInputStream
- class vspyx.IO.SeekableInputSubstream
Bases:
FileInputStream
SeekableInputSubstream
- AvailableBytes :int
- FilePath :str
- IsClosed :bool
- Position :int
- Size :int
- UnixModifiedTime :int
- Clone(self) Any
- Close(self) Any
- Read(self, buffer: Any, len: int) int
- Seek(self, offset: int, origin: int) Any
- class vspyx.IO.SeekableOutputStream
Bases:
OutputStream
,SeekableStream
SeekableOutputStream
- class vspyx.IO.SeekableOutputSubstream
Bases:
FileOutputStream
SeekableOutputSubstream
- FilePath :str
- IsClosed :bool
- Position :int
- Size :int
- UnixModifiedTime :int
- Clone(self) Any
- Close(self) Any
- Flush(self) Any
- Seek(self, offset: int, origin: int) Any
- Write(self, buffer: Any, len: int) int
- class vspyx.IO.SeekableStream
Bases:
Stream
SeekableStream
- Position :int
- Seek(self, offset: int, origin: int) Any
- class vspyx.IO.TextReader
Bases:
vspyx.Core.Object
TextReader
- class Encoding
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- UTF16_BIG_ENDIAN = 2
- UTF16_LITTLE_ENDIAN = 1
- UTF32_BIG_ENDIAN = 4
- UTF32_LITTLE_ENDIAN = 3
- UTF8 = 0
- LastReadLine :str
- static New(source: SeekableInputStream) TextReader
- static New(source: InputStream, encoding: TextReader.Encoding) TextReader
Create a new TextReader with the specified encoding
- ReadNextLineIfAvailable(self) bool
- class vspyx.IO.ZstdOutputStream
Bases:
OutputStream
ZstdOutputStream
- static InputBufferSize() int
- static OutputBufferSize() int
- SetCompressionLevel(self, level: int) Any