@@ -0,0 +1,865 @@
+package com.google.api.client.http;%0A%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0A/**%0A *%0A * @Description: To support file content from InputStream directly%0A *%0A */%0Apublic final class FileContentStream extends FileContent %7B%0A%0A%09private final InputStream inputStream;%0A%0A%09public FileContentStream(String type, File file, InputStream inputStream) %7B%0A%09%09super(type, file);%0A%0A%09%09this.inputStream = inputStream;%0A%09%7D%0A%0A%09@Override%0A    public long getLength() throws IOException %7B%0A%09    long size =  inputStream.available();%0A%09    //System.out.println(%22+++++++===FileContentStream getLength: %22 + size);%0A%09    return size;%0A%09  %7D%0A%0A%09@Override%0A%09public InputStream getInputStream() throws FileNotFoundException %7B%0A%09%09//System.out.println(%22==## FileContentStream file direct get from inputStram%22);%0A%09%09return inputStream;%0A%09%7D%0A%0A%7D%0A

Create FileContentStream.java