TavernerPOS - Source Code

Clone: 

git clone http://www.librarysmith.co.uk/tavernerPOS

 

package com.floreantpos.ui.util;

import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.io.IOUtils;

public class StreamUtils {
	public static String toString(InputStream in) throws IOException {
		if(in == null) {
			return ""; //$NON-NLS-1$
		}

		try {
			return IOUtils.toString(in);
		} finally {
			IOUtils.closeQuietly(in);
		}
	}
}

Add comment
These comments are moderated so so won't be published until reviewed.