Charset is not supported on 1.5 and we don't really need to be using it anyway.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2591 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2009-07-13 00:25:54 +00:00
parent be689f7135
commit 80ccf8dd16
@@ -22,7 +22,6 @@ package com.samskivert.io.tests;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.nio.charset.Charset;
import org.junit.*;
import static org.junit.Assert.*;
@@ -64,8 +63,7 @@ public class StreamUtilTest
protected String copyString (String text)
throws Exception
{
Charset charset = Charset.forName("UTF-8");
ByteArrayInputStream bin = new ByteArrayInputStream(text.getBytes(charset));
ByteArrayInputStream bin = new ByteArrayInputStream(text.getBytes("UTF-8"));
ByteArrayOutputStream bout = new ByteArrayOutputStream();
StreamUtil.copy(bin, bout);
return bout.toString("UTF-8");