source: java/main/src/main/java/com/framsticks/params/Util.java @ 77

Last change on this file since 77 was 77, checked in by psniegowski, 11 years ago

Add new java codebase.

File size: 414 bytes
Line 
1package com.framsticks.params;
2
3/**
4 * @author Piotr Sniegowski
5 */
6public abstract class Util {
7    public static String readSourceToString(SourceInterface source) {
8        StringBuilder result = new StringBuilder();
9        String line;
10        while ((line = source.readLine()) != null) {
11            result.append(line).append(" ");
12        }
13        source.close();
14        return result.toString();
15    }
16}
Note: See TracBrowser for help on using the repository browser.