提交 8d11f83b authored 作者: noelgrandin's avatar noelgrandin

remove some more dead code, and make some methods as private since they are no…

remove some more dead code, and make some methods as private since they are no longer used from outside this class
上级 8dbc26d5
......@@ -104,7 +104,7 @@ public class ValueLob extends Value {
* @param small the byte array
* @return the lob value
*/
public static ValueLob createSmallLob(int type, byte[] small) {
private static ValueLob createSmallLob(int type, byte[] small) {
return new ValueLob(type, small);
}
......@@ -158,7 +158,7 @@ public class ValueLob extends Value {
* @param handler the data handler
* @return the lob value
*/
public static ValueLob createClob(Reader in, long length, DataHandler handler) {
private static ValueLob createClob(Reader in, long length, DataHandler handler) {
try {
if (handler == null) {
String s = IOUtils.readStringAndClose(in, (int) length);
......@@ -348,7 +348,7 @@ public class ValueLob extends Value {
* @param handler the data handler
* @return the lob value
*/
public static ValueLob createBlob(InputStream in, long length, DataHandler handler) {
private static ValueLob createBlob(InputStream in, long length, DataHandler handler) {
try {
if (handler == null) {
byte[] data = IOUtils.readBytesAndClose(in, (int) length);
......@@ -777,18 +777,6 @@ public class ValueLob extends Value {
return 140;
}
private static void removeAllForTable(DataHandler handler, String dir, int tableId) {
for (String name : FileUtils.newDirectoryStream(dir)) {
if (FileUtils.isDirectory(name)) {
removeAllForTable(handler, name, tableId);
} else {
if (name.endsWith(".t" + tableId + Constants.SUFFIX_LOB_FILE)) {
ValueLob.deleteFile(handler, name);
}
}
}
}
/**
* Create an independent copy of this temporary value.
* The file will not be deleted automatically.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论