public static ICharacterDevice Wrap(IByteDevice backend, Text.Encoding encoding) { return(backend.NotNull() ? new CharacterDevice(backend, encoding) { dontClose = true } : null); }
public static ByteStream Open(IByteDevice device) { return device.NotNull() ? new ByteStream(device) : null; }
public static ByteStream Wrap(IByteDevice device) { return device.NotNull() ? new ByteStream(device) { CatchClose = true } : null; }
public static IByteDevice Open(IByteDevice device) { return device.NotNull() ? new ByteDevice(device) : null; }
public static new IByteDevice Open(IByteDevice device) { return device.NotNull() ? new BufferingByteDevice(device) : null; }
public static ICharacterDevice Wrap(IByteDevice backend, System.Text.Encoding encoding) { return backend.NotNull() ? new CharacterDevice(backend, encoding) { Wrapped = true } : null; }
public static ICharacterDevice Open(IByteDevice backend, System.Text.Encoding encoding) { return backend.NotNull() ? new CharacterDevice(backend, encoding) : null; }
public static ByteDevice Open(IByteDevice backend) { return backend.NotNull() ? new ByteDevice(backend) : null; }
public static ICharacterDevice Open(IByteDevice backend, Text.Encoding encoding) { return(backend.NotNull() ? new CharacterDevice(backend, encoding) : null); }