src/share/jaxws_classes/com/sun/xml/internal/ws/util/ASCIIUtility.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ASCIIUtility.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ASCIIUtility.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -27,8 +27,6 @@
    1.11  
    1.12  import java.io.InputStream;
    1.13  import java.io.IOException;
    1.14 -import java.io.ByteArrayInputStream;
    1.15 -import java.io.ByteArrayOutputStream;
    1.16  import java.io.OutputStream;
    1.17  
    1.18  /**
    1.19 @@ -121,22 +119,6 @@
    1.20          return new String(theChars);
    1.21      }
    1.22  
    1.23 -    public static byte[] getBytes(String s) {
    1.24 -        char [] chars= s.toCharArray();
    1.25 -        int size = chars.length;
    1.26 -        byte[] bytes = new byte[size];
    1.27 -
    1.28 -        for (int i = 0; i < size;)
    1.29 -            bytes[i] = (byte) chars[i++];
    1.30 -        return bytes;
    1.31 -    }
    1.32 -
    1.33 -    public static byte[] getBytes(InputStream is) throws IOException {
    1.34 -        ByteArrayBuffer bab = new ByteArrayBuffer();
    1.35 -        bab.write(is);
    1.36 -        return bab.toByteArray();
    1.37 -    }
    1.38 -
    1.39      public static void copyStream(InputStream is, OutputStream out) throws IOException {
    1.40          int size = 1024;
    1.41          byte[] buf = new byte[size];

mercurial