Java Vector Create ToVector(byte[] in)

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

Description

To Vector

License

Open Source License

Declaration

public static final Vector ToVector(byte[] in) 

Method Source Code


//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
}

Related

  1. createVector(Object[] array)
  2. makeVector(String[] O)
  3. parseLinesFromLast(byte[] bytearray, int lineCount, Vector lastNlines)
  4. tokenVector(String s, String delimiters)
  5. toVector(Enumeration pEnumeration_)
  6. toVector(Object[] array)
  7. toVector(T[] array)