git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
formatting
[jalview.git]
/
src
/
jalview
/
io
/
FileParse.java
diff --git
a/src/jalview/io/FileParse.java
b/src/jalview/io/FileParse.java
index
05a7212
..
2caf634
100755
(executable)
--- a/
src/jalview/io/FileParse.java
+++ b/
src/jalview/io/FileParse.java
@@
-38,18
+38,22
@@
public class FileParse
// same data source
protected char suffixSeparator = '#';
// same data source
protected char suffixSeparator = '#';
+
/**
/**
- * character used to write newlines
+ * character used to write newlines
*/
protected String newline = System.getProperty("line.separator");
*/
protected String newline = System.getProperty("line.separator");
+
public void setNewlineString(String nl)
{
newline = nl;
}
public void setNewlineString(String nl)
{
newline = nl;
}
+
public String getNewlineString()
{
return newline;
}
public String getNewlineString()
{
return newline;
}
+
/**
* '#' separated string tagged on to end of filename or url that was clipped
* off to resolve to valid filename
/**
* '#' separated string tagged on to end of filename or url that was clipped
* off to resolve to valid filename
@@
-385,23
+389,27
@@
public class FileParse
{
return dataName;
}
{
return dataName;
}
+
/**
* set the (human readable) name or URI for this datasource
/**
* set the (human readable) name or URI for this datasource
+ *
* @param dataname
*/
* @param dataname
*/
- protected void setDataName(String dataname) {
+ protected void setDataName(String dataname)
+ {
dataName = dataname;
}
dataName = dataname;
}
-
/**
* get the underlying bufferedReader for this data source.
/**
* get the underlying bufferedReader for this data source.
+ *
* @return null if no reader available
* @throws IOException
*/
public Reader getReader()
{
* @return null if no reader available
* @throws IOException
*/
public Reader getReader()
{
- if (dataIn != null) // Probably don't need to test for readiness && dataIn.ready())
+ if (dataIn != null) // Probably don't need to test for readiness &&
+ // dataIn.ready())
{
return dataIn;
}
{
return dataIn;
}