@Test public void getBytesWrittenWithDifferentUnderStorageType() throws IOException { for (WriteType type : WriteType.values()) { OutStreamOptions options = OutStreamOptions.defaults(mClientContext).setBlockSizeBytes(BLOCK_LENGTH) .setWriteType(type).setUfsPath(FILE_NAME.getPath()); mTestStream = createTestStream(FILE_NAME, options); mTestStream.write(BufferUtils.getIncreasingByteArray((int) BLOCK_LENGTH)); mTestStream.flush(); assertEquals(BLOCK_LENGTH, mTestStream.getBytesWritten()); } }
@Deprecated public int getBytesWritten() { return (int) mBytesWritten; }
FileOutStream extends OutputStream implements Cancelable { @Deprecated public int getBytesWritten() { return (int) mBytesWritten; } }
FileOutStream extends OutputStream implements Cancelable { @Deprecated public int getBytesWritten() { return (int) mBytesWritten; }  }
FileOutStream extends OutputStream implements Cancelable { @Deprecated public int getBytesWritten() { return (int) mBytesWritten; }  @Deprecated int getBytesWritten(); @Override void cancel(); }
FileOutStream extends OutputStream implements Cancelable { @Deprecated public int getBytesWritten() { return (int) mBytesWritten; }  @Deprecated int getBytesWritten(); @Override void cancel();  }