Add 'sdk/java-v2/' from commit '55f103e336ca9fb8bf1720d2ef4ee8dd4e221118'
[arvados.git] / sdk / java-v2 / src / main / java / org / arvados / client / logic / collection / static / git-logo.png
diff --git a/src/main/java/org/arvados/client/logic/collection/FileToken.java b/src/main/java/org/arvados/client/logic/collection/FileToken.java
deleted file mode 100644 (file)
index b41ccd3..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (C) The Arvados Authors. All rights reserved.
- *
- * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
- *
- */
-
-package org.arvados.client.logic.collection;
-
-import com.google.common.base.Strings;
-import org.arvados.client.common.Characters;
-
-public class FileToken {
-
-    private int filePosition;
-    private int fileSize;
-    private String fileName;
-    private String path;
-
-    public FileToken(String fileTokenInfo) {
-        splitFileTokenInfo(fileTokenInfo);
-    }
-
-    public FileToken(String fileTokenInfo, String path) {
-        splitFileTokenInfo(fileTokenInfo);
-        this.path = path;
-    }
-
-    private void splitFileTokenInfo(String fileTokenInfo) {
-        String[] tokenPieces = fileTokenInfo.split(":");
-        this.filePosition = Integer.parseInt(tokenPieces[0]);
-        this.fileSize = Integer.parseInt(tokenPieces[1]);
-        this.fileName = tokenPieces[2].replace(Characters.SPACE, " ");
-    }
-
-    @Override
-    public String toString() {
-        return filePosition + ":" + fileSize + ":" + fileName;
-    }
-
-    public String getFullPath() {
-        return Strings.isNullOrEmpty(path) ? fileName : path + fileName;
-    }
-
-    public int getFilePosition() {
-        return this.filePosition;
-    }
-
-    public int getFileSize() {
-        return this.fileSize;
-    }
-
-    public String getFileName() {
-        return this.fileName;
-    }
-
-    public String getPath() {
-        return this.path;
-    }
-}