This commit is contained in:
ahr
2017-12-23 10:06:52 +01:00
parent 8037212145
commit e060e9761d

View File

@@ -9,13 +9,11 @@ import org.lucares.pdb.api.Tags;
public class Doc {
private final Tags tags;
private final byte[] path;
//private final Path path;
public Doc(final Tags tags, final Path path) {
super();
this.tags = tags;
this.path = path.toString().getBytes(StandardCharsets.UTF_8);
//this.path=path;
}
public Tags getTags() {
@@ -24,12 +22,10 @@ public class Doc {
public Path getPath() {
return Paths.get(new String(path, StandardCharsets.UTF_8));
//return path;
}
@Override
public String toString() {
return "Doc [tags=" + tags + ", path=" + getPath() + "]";
}
}