private boolean initInputStream(PostMethod method) {
        InputStream is = null;
        try {
            is = method.getResponseBodyAsStream();
            DataIn = new DataInputStream(is);
        } catch (IOException ex) {
            try{
                is.close();
                DataIn.close();
            }catch (IOException ex1) {
                ex1.printStackTrace();
            }
            ex.printStackTrace();
            return false;
        }
        return true;
    }