Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
73f33f8b
Commit
73f33f8b
authored
May 14, 2012
by
Florian Hölzl
Browse files
bugfix
refs 727
parent
b5ec195b
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.project/trunk/src/org/fortiss/af3/project/utils/FileUtils.java
View file @
73f33f8b
...
...
@@ -33,7 +33,7 @@ import org.fortiss.af3.project.AF3ProjectActivator;
* @author becker
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash:
D1480D3F366C8193AA33113D1C1564CD
* @ConQAT.Rating GREEN Hash:
FF5B0A69B0BD64339D9243A13D9D79D8
*/
public
class
FileUtils
{
...
...
@@ -48,20 +48,18 @@ public class FileUtils {
try
{
URL
url
=
new
URL
(
uri
.
toString
());
InputStream
inputStream
=
url
.
openConnection
().
getInputStream
();
BufferedReader
in
=
new
BufferedReader
(
new
InputStreamReader
(
inputStream
));
BufferedReader
in
=
new
BufferedReader
(
new
InputStreamReader
(
inputStream
));
StringBuffer
buffer
=
new
StringBuffer
();
String
line
=
in
.
readLine
();
while
(
line
!=
null
)
{
buffer
.
append
(
line
);
while
(
line
!=
null
)
{
buffer
.
append
(
line
)
.
append
(
'\n'
)
;
line
=
in
.
readLine
();
}
return
buffer
.
toString
();
}
catch
(
Exception
e
)
{
error
(
AF3ProjectActivator
.
getDefault
(),
"Error during loading file: "
+
uri
+
", e="
+
e
.
toString
(),
e
);
}
catch
(
Exception
e
)
{
error
(
AF3ProjectActivator
.
getDefault
(),
"Error during loading file: "
+
uri
+
", e="
+
e
.
toString
(),
e
);
}
return
""
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment