Beispiel #1
0
 public static ICharacterDevice Wrap(IByteDevice backend, Text.Encoding encoding)
 {
     return(backend.NotNull() ? new CharacterDevice(backend, encoding)
     {
         dontClose = true
     } : null);
 }
Beispiel #2
0
		public static ByteStream Open(IByteDevice device)
		{
			return device.NotNull() ? new ByteStream(device) : null;
		}
Beispiel #3
0
		public static ByteStream Wrap(IByteDevice device)
		{
			return device.NotNull() ? new ByteStream(device) { CatchClose = true } : null;
		}
Beispiel #4
0
		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;
		}
Beispiel #6
0
		public static ICharacterDevice Wrap(IByteDevice backend, System.Text.Encoding encoding)
		{
			return backend.NotNull() ? new CharacterDevice(backend, encoding) { Wrapped = true } : null;
		}
Beispiel #7
0
		public static ICharacterDevice Open(IByteDevice backend, System.Text.Encoding encoding)
		{
			return backend.NotNull() ? new CharacterDevice(backend, encoding) : null;
		}
Beispiel #8
0
		public static ByteDevice Open(IByteDevice backend)
		{
			return backend.NotNull() ? new ByteDevice(backend) : null;
		}
Beispiel #9
0
 public static ICharacterDevice Open(IByteDevice backend, Text.Encoding encoding)
 {
     return(backend.NotNull() ? new CharacterDevice(backend, encoding) : null);
 }