Here you can find the source of ToVector(byte[] in)
public static final Vector ToVector(byte[] in)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static final Vector ToVector(byte[] in) { if (in == null) return null; Vector v = new Vector(); for (int i = 0, s = in.length; i < s; i++) v.addElement(new Byte(in[i])); return v; }//from w w w . j ava2 s.c o m }