提交 5a1cbb40 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 b3d6a60b
...@@ -37,7 +37,7 @@ public class DateTimeUtils { ...@@ -37,7 +37,7 @@ public class DateTimeUtils {
*/ */
public static final long MILLIS_PER_DAY = 24 * 60 * 60 * 1000L; public static final long MILLIS_PER_DAY = 24 * 60 * 60 * 1000L;
public static final long NANOS_PER_DAY = MILLIS_PER_DAY * 1000000; private static final long NANOS_PER_DAY = MILLIS_PER_DAY * 1000000;
private static final int SHIFT_YEAR = 9; private static final int SHIFT_YEAR = 9;
private static final int SHIFT_MONTH = 5; private static final int SHIFT_MONTH = 5;
......
...@@ -112,8 +112,15 @@ public class FilePathCrypt extends FilePathWrapper { ...@@ -112,8 +112,15 @@ public class FilePathCrypt extends FilePathWrapper {
*/ */
class FileCrypt extends FileBase { class FileCrypt extends FileBase {
/**
* The length of the file header. Using a smaller header is possible, but
* might result in un-aligned reads and writes.
*/
static final int HEADER_LENGTH = 4096; static final int HEADER_LENGTH = 4096;
/**
* The block size.
*/
static final int BLOCK_SIZE = Constants.FILE_BLOCK_SIZE; static final int BLOCK_SIZE = Constants.FILE_BLOCK_SIZE;
// TODO improve the header // TODO improve the header
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论