95 96 /** 97 * Returns the number of bytes available to this Java virtual machine on the 98 * file store. 99 * 100 * <p> The returned number of available bytes is a hint, but not a 101 * guarantee, that it is possible to use most or any of these bytes. The 102 * number of usable bytes is most likely to be accurate immediately 103 * after the space attributes are obtained. It is likely to be made inaccurate 104 * by any external I/O operations including those made on the system outside 105 * of this Java virtual machine. 106 * 107 * @return the number of bytes available 108 * 109 * @throws IOException 110 * if an I/O error occurs 111 */ 112 public abstract long getUsableSpace() throws IOException; 113 114 /** 115 * Returns the number of unallocated bytes in the file store. 116 * 117 * <p> The returned number of unallocated bytes is a hint, but not a 118 * guarantee, that it is possible to use most or any of these bytes. The 119 * number of unallocated bytes is most likely to be accurate immediately 120 * after the space attributes are obtained. It is likely to be 121 * made inaccurate by any external I/O operations including those made on 122 * the system outside of this virtual machine. 123 * 124 * @return the number of unallocated bytes 125 * 126 * @throws IOException 127 * if an I/O error occurs 128 */ 129 public abstract long getUnallocatedSpace() throws IOException; 130 131 /** 132 * Tells whether or not this file store supports the file attributes 133 * identified by the given file attribute view. 134 * | 95 96 /** 97 * Returns the number of bytes available to this Java virtual machine on the 98 * file store. 99 * 100 * <p> The returned number of available bytes is a hint, but not a 101 * guarantee, that it is possible to use most or any of these bytes. The 102 * number of usable bytes is most likely to be accurate immediately 103 * after the space attributes are obtained. It is likely to be made inaccurate 104 * by any external I/O operations including those made on the system outside 105 * of this Java virtual machine. 106 * 107 * @return the number of bytes available 108 * 109 * @throws IOException 110 * if an I/O error occurs 111 */ 112 public abstract long getUsableSpace() throws IOException; 113 114 /** 115 * Returns block size in Bytes to this Java virtual machine on the file 116 * store. 117 * 118 * @return block size 119 * 120 * @throws IOException 121 * if an I/O error occurs 122 */ 123 public abstract int getBlockSize() throws IOException; 124 125 /** 126 * Returns the number of unallocated bytes in the file store. 127 * 128 * <p> The returned number of unallocated bytes is a hint, but not a 129 * guarantee, that it is possible to use most or any of these bytes. The 130 * number of unallocated bytes is most likely to be accurate immediately 131 * after the space attributes are obtained. It is likely to be 132 * made inaccurate by any external I/O operations including those made on 133 * the system outside of this virtual machine. 134 * 135 * @return the number of unallocated bytes 136 * 137 * @throws IOException 138 * if an I/O error occurs 139 */ 140 public abstract long getUnallocatedSpace() throws IOException; 141 142 /** 143 * Tells whether or not this file store supports the file attributes 144 * identified by the given file attribute view. 145 * |