@Test public void testBucketInputStream() throws IOException { this.expectedEx.expect(IllegalStateException.class); this.expectedEx.expectMessage( "Cannot open an input stream to a bucket: 'oss: this.bucketResource.getInputStream(); }
@Override public InputStream getInputStream() throws IOException { assertExisted(); if (isBucket()) { throw new IllegalStateException( "Cannot open an input stream to a bucket: '" + this.location + "'"); } else { return getOSSObject().getObjectContent(); } }
OssStorageResource implements WritableResource { @Override public InputStream getInputStream() throws IOException { assertExisted(); if (isBucket()) { throw new IllegalStateException( "Cannot open an input stream to a bucket: '" + this.location + "'"); } else { return getOSSObject().getObjectContent(); } } }
OssStorageResource implements WritableResource { @Override public InputStream getInputStream() throws IOException { assertExisted(); if (isBucket()) { throw new IllegalStateException( "Cannot open an input stream to a bucket: '" + this.location + "'"); } else { return getOSSObject().getObjectContent(); } } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); }
OssStorageResource implements WritableResource { @Override public InputStream getInputStream() throws IOException { assertExisted(); if (isBucket()) { throw new IllegalStateException( "Cannot open an input stream to a bucket: '" + this.location + "'"); } else { return getOSSObject().getObjectContent(); } } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); boolean isAutoCreateFiles(); @Override boolean exists(); @Override URL getURL(); @Override URI getURI(); @Override File getFile(); @Override long contentLength(); @Override long lastModified(); @Override Resource createRelative(String relativePath); @Override String getFilename(); @Override String getDescription(); @Override InputStream getInputStream(); Bucket getBucket(); boolean bucketExists(); OSSObject getOSSObject(); boolean isBucket(); Bucket createBucket(); @Override boolean isWritable(); @Override OutputStream getOutputStream(); }
OssStorageResource implements WritableResource { @Override public InputStream getInputStream() throws IOException { assertExisted(); if (isBucket()) { throw new IllegalStateException( "Cannot open an input stream to a bucket: '" + this.location + "'"); } else { return getOSSObject().getObjectContent(); } } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); boolean isAutoCreateFiles(); @Override boolean exists(); @Override URL getURL(); @Override URI getURI(); @Override File getFile(); @Override long contentLength(); @Override long lastModified(); @Override Resource createRelative(String relativePath); @Override String getFilename(); @Override String getDescription(); @Override InputStream getInputStream(); Bucket getBucket(); boolean bucketExists(); OSSObject getOSSObject(); boolean isBucket(); Bucket createBucket(); @Override boolean isWritable(); @Override OutputStream getOutputStream();  }