1 16 package org.apache.commons.vfs.provider; 17 18 import org.apache.commons.vfs.RandomAccessContent; 19 import org.apache.commons.vfs.util.RandomAccessMode; 20 21 import java.io.IOException ; 22 23 30 public abstract class AbstractRandomAccessContent implements RandomAccessContent 31 { 32 private final RandomAccessMode mode; 33 34 protected AbstractRandomAccessContent(final RandomAccessMode mode) 35 { 36 this.mode = mode; 37 } 38 39 public void writeDouble(double v) throws IOException 40 { 41 throw new UnsupportedOperationException (); 42 } 43 44 public void writeFloat(float v) throws IOException 45 { 46 throw new UnsupportedOperationException (); 47 } 48 49 public void write(int b) throws IOException 50 { 51 throw new UnsupportedOperationException (); 52 } 53 54 public void writeByte(int v) throws IOException 55 { 56 throw new UnsupportedOperationException (); 57 } 58 59 public void writeChar(int v) throws IOException 60 { 61 throw new UnsupportedOperationException (); 62 } 63 64 public void writeInt(int v) throws IOException 65 { 66 throw new UnsupportedOperationException (); 67 } 68 69 public void writeShort(int v) throws IOException 70 { 71 throw new UnsupportedOperationException (); 72 } 73 74 public void writeLong(long v) throws IOException 75 { 76 throw new UnsupportedOperationException (); 77 } 78 79 public void writeBoolean(boolean v) throws IOException 80 { 81 throw new UnsupportedOperationException (); 82 } 83 84 public void write(byte b[]) throws IOException 85 { 86 throw new UnsupportedOperationException (); 87 } 88 89 public void write(byte b[], int off, int len) throws IOException 90 { 91 throw new UnsupportedOperationException (); 92 } 93 94 public void writeBytes(String s) throws IOException 95 { 96 throw new UnsupportedOperationException (); 97 } 98 99 public void writeChars(String s) throws IOException 100 { 101 throw new UnsupportedOperationException (); 102 } 103 104 public void writeUTF(String str) throws IOException 105 { 106 throw new UnsupportedOperationException (); 107 } 108 109 112 public String readLine() throws IOException 113 { 114 throw new UnsupportedOperationException ("deprecated"); 115 } 116 } 117 | Popular Tags |