Java Char Upper Case toUpperCase(byte[] in)

Here you can find the source of toUpperCase(byte[] in)

Description

to Upper Case

License

Open Source License

Declaration

static public byte[] toUpperCase(byte[] in) 

Method Source Code

//package com.java2s;
/*//  w ww  . ja  v a  2  s.co m
 * Bis-SNP/BisSNP: It is a genotyping and methylation calling in bisulfite treated 
 * massively parallel sequencing (Bisulfite-seq and NOMe-seq) on Illumina platform
 * Copyright (C) <2011>  <Yaping Liu: lyping1986@gmail.com>
    
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or any later version.
    
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
    
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

public class Main {
    static public byte[] toUpperCase(byte[] in) {
        byte[] out = new byte[in.length];
        for (int i = 0; i < in.length; i++) {
            out[i] = toUpperCase(in[i]);
        }
        return out;
    }

    static public byte toUpperCase(byte b) {
        return (byte) Character.toUpperCase((char) b);
    }
}

Related

  1. toUpperCase(byte b)
  2. toUpperCase(char a)
  3. toUpperCase(char a)
  4. toUpperCase(char a)
  5. toUpperCase(char c)