code
stringlengths
73
34.1k
label
stringclasses
1 value
public void record(ByteBuffer block, int offset) { if (this.data == null) { // TODO: remove cast to int when large ByteBuffer support is // implemented in Java. this.data = ByteBuffer.allocate((int) this.length); } int pos = block.position(); this.data.position(offset); this.data....
java
public int compareTo(Piece other) { // return true for the same pieces, otherwise sort by time seen, then by index; if (this.equals(other)) { return 0; } else if (this.seen == other.seen) { return new Integer(this.index).compareTo(other.index); } else if (this.seen < other.seen) { retu...
java
public void addPeer(TrackedPeer peer) { this.peers.put(new PeerUID(peer.getAddress(), this.getHexInfoHash()), peer); }
java
public List<Peer> getSomePeers(Peer peer) { List<Peer> peers = new LinkedList<Peer>(); // Extract answerPeers random peers List<TrackedPeer> candidates = new LinkedList<TrackedPeer>(this.peers.values()); Collections.shuffle(candidates); int count = 0; for (TrackedPeer candidate : candidates) {...
java
public static TrackedTorrent load(File torrent) throws IOException { TorrentMetadata torrentMetadata = new TorrentParser().parseFromFile(torrent); return new TrackedTorrent(torrentMetadata.getInfoHash()); }
java
public TorrentManager addTorrent(String dotTorrentFilePath, String downloadDirPath) throws IOException { return addTorrent(dotTorrentFilePath, downloadDirPath, FairPieceStorageFactory.INSTANCE); }
java
public TorrentManager addTorrent(String dotTorrentFilePath, String downloadDirPath, List<TorrentListener> listeners) throws IOException { return addTorrent(dotTorrentFilePath, downloadDirPath, FairPieceStorageFactory.INSTANCE, listeners); }
java
public TorrentManager addTorrent(TorrentMetadataProvider metadataProvider, PieceStorage pieceStorage) throws IOException { return addTorrent(metadataProvider, pieceStorage, Collections.<TorrentListener>emptyList()); }
java
public TorrentManager addTorrent(TorrentMetadataProvider metadataProvider, PieceStorage pieceStorage, List<TorrentListener> listeners) throws IOException { TorrentMetadata torrentMetadata = metadataProvider.getTorrentMetadata(); EventDispatch...
java
public void removeTorrent(String torrentHash) { logger.debug("Stopping seeding " + torrentHash); final Pair<SharedTorrent, LoadedTorrent> torrents = torrentsStorage.remove(torrentHash); SharedTorrent torrent = torrents.first(); if (torrent != null) { torrent.setClientState(ClientState.DONE); ...
java
public boolean isSeed(String hexInfoHash) { SharedTorrent t = this.torrentsStorage.getTorrent(hexInfoHash); return t != null && t.isComplete(); }
java
@Override public void handleAnnounceResponse(int interval, int complete, int incomplete, String hexInfoHash) { final SharedTorrent sharedTorrent = this.torrentsStorage.getTorrent(hexInfoHash); if (sharedTorrent != null) { sharedTorrent.setSeedersCount(complete); sharedTorrent.setLastAnnounceTime(S...
java
@Override public void handleDiscoveredPeers(List<Peer> peers, String hexInfoHash) { if (peers.size() == 0) return; SharedTorrent torrent = torrentsStorage.getTorrent(hexInfoHash); if (torrent != null && torrent.isFinished()) return; final LoadedTorrent announceableTorrent = torrentsStorage.getLoad...
java
public static String byteArrayToHexString(byte[] bytes) { char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = HEX_SYMBOLS[v >>> 4]; hexChars[j * 2 + 1] = HEX_SYMBOLS[v & 0x0F]; } return new String(hexChars); ...
java
@Bean @ConditionalOnMissingBean(ZookeeperHealthIndicator.class) @ConditionalOnBean(CuratorFramework.class) @ConditionalOnEnabledHealthIndicator("zookeeper") public ZookeeperHealthIndicator zookeeperHealthIndicator(CuratorFramework curator) { return new ZookeeperHealthIndicator(curator); }
java
private void createProxies() { source = createProxy(sourceType); destination = createProxy(destinationType); for (VisitedMapping mapping : visitedMappings) { createAccessorProxies(source, mapping.sourceAccessors); createAccessorProxies(destination, mapping.destinationAccessors); } ...
java
private void validateRecordedMapping() { if (currentMapping.destinationMutators == null || currentMapping.destinationMutators.isEmpty()) errors.missingDestination(); // If mapping a field without a source else if (options.skipType == 0 && (currentMapping.sourceAccessors == null || current...
java
@SuppressWarnings("unchecked") static <T> TypeInfoImpl<T> typeInfoFor(Class<T> sourceType, InheritingConfiguration configuration) { TypeInfoKey pair = new TypeInfoKey(sourceType, configuration); TypeInfoImpl<T> typeInfo = (TypeInfoImpl<T>) cache.get(pair); if (typeInfo == null) { synchronized...
java
public static boolean mightContainsProperties(Class<?> type) { return type != Object.class && type != String.class && type != Date.class && type != Calendar.class && !Primitives.isPrimitive(type) && !Iterables.isIterable(type) && !Types.isGroovyType(type); }
java
private void mergeMappings(TypeMap<?, ?> destinationMap) { for (Mapping mapping : destinationMap.getMappings()) { InternalMapping internalMapping = (InternalMapping) mapping; mergedMappings.add(internalMapping.createMergedCopy( propertyNameInfo.getSourceProperties(), propertyNameInfo.getDe...
java
private boolean isConvertable(Mapping mapping) { if (mapping == null || mapping.getProvider() != null || !(mapping instanceof PropertyMapping)) return false; PropertyMapping propertyMapping = (PropertyMapping) mapping; boolean hasSupportConverter = converterStore.getFirstSupported( prop...
java
static void mapAutomatically() { Order order = createOrder(); ModelMapper modelMapper = new ModelMapper(); OrderDTO orderDTO = modelMapper.map(order, OrderDTO.class); assertOrdersEqual(order, orderDTO); }
java
static void mapExplicitly() { Order order = createOrder(); ModelMapper modelMapper = new ModelMapper(); modelMapper.addMappings(new PropertyMap<Order, OrderDTO>() { @Override protected void configure() { map().setBillingStreet(source.getBillingAddress().getStreet()); map(source.b...
java
public static <T> Collection<T> createCollection(MappingContext<?, Collection<T>> context) { if (context.getDestinationType().isInterface()) if (SortedSet.class.isAssignableFrom(context.getDestinationType())) return new TreeSet<T>(); else if (Set.class.isAssignableFrom(context.getDes...
java
public static String format(String heading, Collection<ErrorMessage> errorMessages) { @SuppressWarnings("resource") Formatter fmt = new Formatter().format(heading).format(":%n%n"); int index = 1; boolean displayCauses = getOnlyCause(errorMessages) == null; for (ErrorMessage errorMessage : err...
java
public Map<String, Accessor> getAccessors() { if (accessors == null) synchronized (this) { if (accessors == null) accessors = PropertyInfoSetResolver.resolveAccessors(source, type, configuration); } return accessors; }
java
public Map<String, Mutator> getMutators() { if (mutators == null) synchronized (this) { if (mutators == null) mutators = PropertyInfoSetResolver.resolveMutators(type, configuration); } return mutators; }
java
static synchronized Accessor accessorFor(Class<?> type, Method method, Configuration configuration, String name) { PropertyInfoKey key = new PropertyInfoKey(type, name, configuration); Accessor accessor = ACCESSOR_CACHE.get(key); if (accessor == null) { accessor = new MethodAccessor(type, m...
java
static synchronized FieldPropertyInfo fieldPropertyFor(Class<?> type, Field field, Configuration configuration, String name) { PropertyInfoKey key = new PropertyInfoKey(type, name, configuration); FieldPropertyInfo fieldPropertyInfo = FIELD_CACHE.get(key); if (fieldPropertyInfo == null) { f...
java
static synchronized Mutator mutatorFor(Class<?> type, Method method, Configuration configuration, String name) { PropertyInfoKey key = new PropertyInfoKey(type, name, configuration); Mutator mutator = MUTATOR_CACHE.get(key); if (mutator == null) { mutator = new MethodMutator(type, method, n...
java
@SuppressWarnings("unchecked") public static int getLength(Object iterable) { Assert.state(isIterable(iterable.getClass())); return iterable.getClass().isArray() ? Array.getLength(iterable) : ((Collection<Object>) iterable).size(); }
java
@SuppressWarnings("unchecked") public static Iterator<Object> iterator(Object iterable) { Assert.state(isIterable(iterable.getClass())); return iterable.getClass().isArray() ? new ArrayIterator(iterable) : ((Iterable<Object>) iterable).iterator(); }
java
@SuppressWarnings("unchecked") public static Object getElement(Object iterable, int index) { if (iterable.getClass().isArray()) return getElementFromArrary(iterable, index); if (iterable instanceof Collection) return getElementFromCollection((Collection<Object>) iterable, index); retur...
java
public static Object getElementFromArrary(Object array, int index) { try { return Array.get(array, index); } catch (ArrayIndexOutOfBoundsException e) { return null; } }
java
public static Object getElementFromCollection(Collection<Object> collection, int index) { if (collection.size() < index + 1) return null; if (collection instanceof List) return ((List<Object>) collection).get(index); Iterator<Object> iterator = collection.iterator(); for (int i = 0...
java
public synchronized @Nonnull String version() throws IOException { if (this.version == null) { Process p = runFunc.run(ImmutableList.of(path, "-version")); try { BufferedReader r = wrapInReader(p); this.version = r.readLine(); CharStreams.copy(r, CharStreams.nullWriter()); // Thr...
java
public List<String> path(List<String> args) throws IOException { return ImmutableList.<String>builder().add(path).addAll(args).build(); }
java
public static URI checkValidStream(URI uri) throws IllegalArgumentException { String scheme = checkNotNull(uri).getScheme(); scheme = checkNotNull(scheme, "URI is missing a scheme").toLowerCase(); if (rtps.contains(scheme)) { return uri; } if (udpTcp.contains(scheme)) { if (uri.getPort...
java
public void read(NutDataInputStream in, long startcode) throws IOException { this.startcode = startcode; forwardPtr = in.readVarLong(); if (forwardPtr > 4096) { long expected = in.getCRC(); checksum = in.readInt(); if (checksum != expected) { // TODO This code path has never been t...
java
@CheckReturnValue @Override public EncodingOptions buildOptions() { // TODO When/if modelmapper supports @ConstructorProperties, we map this // object, instead of doing new XXX(...) // https://github.com/jhalterman/modelmapper/issues/44 return new EncodingOptions( new MainEncodingOptions(for...
java
protected void readFileId() throws IOException { byte[] b = new byte[HEADER.length]; in.readFully(b); if (!Arrays.equals(b, HEADER)) { throw new IOException( "file_id_string does not match. got: " + new String(b, Charsets.ISO_8859_1)); } }
java
protected long readReservedHeaders() throws IOException { long startcode = in.readStartCode(); while (Startcode.isPossibleStartcode(startcode) && isKnownStartcode(startcode)) { new Packet().read(in, startcode); // Discard unknown packet startcode = in.readStartCode(); } return startcode; ...
java
public void read() throws IOException { readFileId(); in.resetCRC(); long startcode = in.readStartCode(); while (true) { // Start parsing main and stream information header = new MainHeaderPacket(); if (!Startcode.MAIN.equalsCode(startcode)) { throw new IOException(String.fo...
java
public T setVideoFrameRate(Fraction frame_rate) { this.video_enabled = true; this.video_frame_rate = checkNotNull(frame_rate); return getThis(); }
java
public T addMetaTag(String key, String value) { checkValidKey(key); checkNotEmpty(value, "value must not be empty"); meta_tags.add("-metadata"); meta_tags.add(key + "=" + value); return getThis(); }
java
public T setAudioChannels(int channels) { checkArgument(channels > 0, "channels must be positive"); this.audio_enabled = true; this.audio_channels = channels; return getThis(); }
java
public T setAudioSampleRate(int sample_rate) { checkArgument(sample_rate > 0, "sample rate must be positive"); this.audio_enabled = true; this.audio_sample_rate = sample_rate; return getThis(); }
java
public T setStartOffset(long offset, TimeUnit units) { checkNotNull(units); this.startOffset = units.toMillis(offset); return getThis(); }
java
public T setDuration(long duration, TimeUnit units) { checkNotNull(units); this.duration = units.toMillis(duration); return getThis(); }
java
public T setAudioPreset(String preset) { this.audio_enabled = true; this.audio_preset = checkNotEmpty(preset, "audio preset must not be empty"); return getThis(); }
java
public T setSubtitlePreset(String preset) { this.subtitle_enabled = true; this.subtitle_preset = checkNotEmpty(preset, "subtitle preset must not be empty"); return getThis(); }
java
public int readVarInt() throws IOException { boolean more; int result = 0; do { int b = in.readUnsignedByte(); more = (b & 0x80) == 0x80; result = 128 * result + (b & 0x7F); // TODO Check for int overflow } while (more); return result; }
java
public long readVarLong() throws IOException { boolean more; long result = 0; do { int b = in.readUnsignedByte(); more = (b & 0x80) == 0x80; result = 128 * result + (b & 0x7F); // TODO Check for long overflow } while (more); return result; }
java
public byte[] readVarArray() throws IOException { int len = (int) readVarLong(); byte[] result = new byte[len]; in.read(result); return result; }
java
public long readStartCode() throws IOException { byte frameCode = in.readByte(); if (frameCode != 'N') { return (long) (frameCode & 0xff); } // Otherwise read the remaining 64bit startCode byte[] buffer = new byte[8]; buffer[0] = frameCode; readFully(buffer, 1, 7); return (((long)...
java
public static StreamSpecifier stream(StreamSpecifierType type, int index) { checkNotNull(type); return new StreamSpecifier(type.toString() + ":" + index); }
java
public static StreamSpecifier tag(String key, String value) { checkValidKey(key); checkNotNull(value); return new StreamSpecifier("m:" + key + ":" + value); }
java
protected boolean parseLine(String line) { line = checkNotNull(line).trim(); if (line.isEmpty()) { return false; // Skip empty lines } final String[] args = line.split("=", 2); if (args.length != 2) { // invalid argument, so skip return false; } final String key = checkNo...
java
@CheckReturnValue static URI createUri(String scheme, InetAddress address, int port) throws URISyntaxException { checkNotNull(address); return new URI( scheme, null /* userInfo */, InetAddresses.toUriString(address), port, null /* path */, null /* query */, ...
java
@Override public synchronized void start() { if (thread != null) { throw new IllegalThreadStateException("Parser already started"); } String name = getThreadName() + "(" + getUri().toString() + ")"; CountDownLatch startSignal = new CountDownLatch(1); Runnable runnable = getRunnable(startSi...
java
public static long parseBitrate(String bitrate) { if ("N/A".equals(bitrate)) { return -1; } Matcher m = BITRATE_REGEX.matcher(bitrate); if (!m.find()) { throw new IllegalArgumentException("Invalid bitrate '" + bitrate + "'"); } return (long) (Float.parseFloat(m.group(1)) * 1000); ...
java
public static int waitForWithTimeout(final Process p, long timeout, TimeUnit unit) throws TimeoutException { ProcessThread t = new ProcessThread(p); t.start(); try { unit.timedJoin(t, timeout); } catch (InterruptedException e) { t.interrupt(); Thread.currentThread().interrupt()...
java
public T get() throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { if (ex == null) { return type; } if (ex instanceo...
java
private boolean isValidEndpoint(String endpoint) { if (InetAddressValidator.getInstance().isValid(endpoint)) { return true; } // endpoint may be a hostname // refer https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names // why checks are done like below if (endpoint.lengt...
java
private void checkBucketName(String name) throws InvalidBucketNameException { if (name == null) { throw new InvalidBucketNameException(NULL_STRING, "null bucket name"); } // Bucket names cannot be no less than 3 and no more than 63 characters long. if (name.length() < 3 || name.length() > 63) { ...
java
public void setTimeout(long connectTimeout, long writeTimeout, long readTimeout) { this.httpClient = this.httpClient.newBuilder() .connectTimeout(connectTimeout, TimeUnit.MILLISECONDS) .writeTimeout(writeTimeout, TimeUnit.MILLISECONDS) .readTimeout(readTimeout, TimeUnit.MILLISECONDS) .build(...
java
@SuppressFBWarnings(value = "SIC", justification = "Should not be used in production anyways.") public void ignoreCertCheck() throws NoSuchAlgorithmException, KeyManagementException { final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { @Override public void checkClie...
java
private boolean shouldOmitPortInHostHeader(HttpUrl url) { return (url.scheme().equals("http") && url.port() == 80) || (url.scheme().equals("https") && url.port() == 443); }
java
private HttpResponse execute(Method method, String region, String bucketName, String objectName, Map<String,String> headerMap, Map<String,String> queryParamMap, Object body, int length) throws InvalidBucketNameException, NoSuchAlgorithmException, Insuffi...
java
private void updateRegionCache(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { if (bucketName != null && thi...
java
private String getRegion(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { String region; if (this.region == nul...
java
private String getText(XmlPullParser xpp) throws XmlPullParserException { if (xpp.getEventType() == XmlPullParser.TEXT) { return xpp.getText(); } return null; }
java
private HttpResponse executeGet(String bucketName, String objectName, Map<String,String> headerMap, Map<String,String> queryParamMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseExcep...
java
private HttpResponse executeHead(String bucketName, String objectName, Map<String,String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, In...
java
private HttpResponse executeDelete(String bucketName, String objectName, Map<String,String> queryParamMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, ...
java
private HttpResponse executePost(String bucketName, String objectName, Map<String,String> headerMap, Map<String,String> queryParamMap, Object data) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, ...
java
public String getObjectUrl(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Request reques...
java
public void copyObject(String bucketName, String objectName, String destBucketName) throws InvalidKeyException, InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, NoResponseException, ErrorResponseException, InternalException, IOException, XmlPullParserException, InvalidA...
java
public String getPresignedObjectUrl(Method method, String bucketName, String objectName, Integer expires, Map<String, String> reqParams) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoRespon...
java
public String presignedGetObject(String bucketName, String objectName, Integer expires, Map<String, String> reqParams) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullP...
java
public String presignedGetObject(String bucketName, String objectName, Integer expires) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcepti...
java
public String presignedPutObject(String bucketName, String objectName, Integer expires) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcepti...
java
public void removeObject(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentExcept...
java
public Iterable<Result<Item>> listObjects(final String bucketName) throws XmlPullParserException { return listObjects(bucketName, null); }
java
public Iterable<Result<Item>> listObjects(final String bucketName, final String prefix) throws XmlPullParserException { // list all objects recursively return listObjects(bucketName, prefix, true); }
java
public List<Bucket> listBuckets() throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { HttpResponse response = executeGet(null, null...
java
public boolean bucketExists(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { try { executeHead(bucketNa...
java
public void makeBucket(String bucketName) throws InvalidBucketNameException, RegionConflictException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { th...
java
public void makeBucket(String bucketName, String region) throws InvalidBucketNameException, RegionConflictException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExc...
java
private String putObject(String bucketName, String objectName, int length, Object data, String uploadId, int partNumber, Map<String, String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlP...
java
private void putObject(String bucketName, String objectName, Long size, Object data, Map<String, String> headerMap, ServerSideEncryption sse) throws InvalidBucketNameException, NoSuchAlgorithmException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseExce...
java
public String getBucketPolicy(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, Bucke...
java
public void setBucketPolicy(String bucketName, String policy) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExc...
java
public void deleteBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> que...
java
public String getBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> quer...
java
public NotificationConfiguration getBucketNotification(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,...
java
public void setBucketNotification(String bucketName, NotificationConfiguration notificationConfiguration) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserEx...
java
public void removeAllBucketNotification(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcept...
java
public Iterable<Result<Upload>> listIncompleteUploads(String bucketName, String prefix) throws XmlPullParserException { return listIncompleteUploads(bucketName, prefix, true, true); }
java
private String initMultipartUpload(String bucketName, String objectName, Map<String, String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, ...
java