Skip to content
Snippets Groups Projects
Commit 3d9efd1c authored by tjc's avatar tjc
Browse files

add getName()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15559 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 68122d3d
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
package uk.ac.sanger.artemis.components.variant; package uk.ac.sanger.artemis.components.variant;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
...@@ -52,4 +53,12 @@ public abstract class AbstractVCFReader ...@@ -52,4 +53,12 @@ public abstract class AbstractVCFReader
is.read(buf); is.read(buf);
return ByteBuffer.wrap(buf).order(ByteOrder.LITTLE_ENDIAN).getLong(); return ByteBuffer.wrap(buf).order(ByteOrder.LITTLE_ENDIAN).getLong();
} }
protected String getName()
{
if(getFileName() == null)
return null;
File f = new File(getFileName());
return f.getName();
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment