id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
62,700
modelmapper/modelmapper
core/src/main/java/org/modelmapper/internal/util/Iterables.java
Iterables.iterator
@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 Iterator<Object> iterator(Object iterable) { Assert.state(isIterable(iterable.getClass())); return iterable.getClass().isArray() ? new ArrayIterator(iterable) : ((Iterable<Object>) iterable).iterator(); }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "Iterator", "<", "Object", ">", "iterator", "(", "Object", "iterable", ")", "{", "Assert", ".", "state", "(", "isIterable", "(", "iterable", ".", "getClass", "(", ")", ")", ")", ";", ...
Creates a iterator from given iterable. @param iterable the iterable @return a iterator
[ "Creates", "a", "iterator", "from", "given", "iterable", "." ]
491d165ded9dc9aba7ce8b56984249e1a1363204
https://github.com/modelmapper/modelmapper/blob/491d165ded9dc9aba7ce8b56984249e1a1363204/core/src/main/java/org/modelmapper/internal/util/Iterables.java#L59-L64
62,701
modelmapper/modelmapper
core/src/main/java/org/modelmapper/internal/util/Iterables.java
Iterables.getElement
@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
@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...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "Object", "getElement", "(", "Object", "iterable", ",", "int", "index", ")", "{", "if", "(", "iterable", ".", "getClass", "(", ")", ".", "isArray", "(", ")", ")", "return", "getElement...
Gets the element from an iterable with given index. @param iterable the iterable @param index the index @return null if the iterable doesn't have the element at index, otherwise, return the element
[ "Gets", "the", "element", "from", "an", "iterable", "with", "given", "index", "." ]
491d165ded9dc9aba7ce8b56984249e1a1363204
https://github.com/modelmapper/modelmapper/blob/491d165ded9dc9aba7ce8b56984249e1a1363204/core/src/main/java/org/modelmapper/internal/util/Iterables.java#L73-L81
62,702
modelmapper/modelmapper
core/src/main/java/org/modelmapper/internal/util/Iterables.java
Iterables.getElementFromArrary
public static Object getElementFromArrary(Object array, int index) { try { return Array.get(array, index); } catch (ArrayIndexOutOfBoundsException e) { return null; } }
java
public static Object getElementFromArrary(Object array, int index) { try { return Array.get(array, index); } catch (ArrayIndexOutOfBoundsException e) { return null; } }
[ "public", "static", "Object", "getElementFromArrary", "(", "Object", "array", ",", "int", "index", ")", "{", "try", "{", "return", "Array", ".", "get", "(", "array", ",", "index", ")", ";", "}", "catch", "(", "ArrayIndexOutOfBoundsException", "e", ")", "{"...
Gets the element from an array with given index. @param array the array @param index the index @return null if the array doesn't have the element at index, otherwise, return the element
[ "Gets", "the", "element", "from", "an", "array", "with", "given", "index", "." ]
491d165ded9dc9aba7ce8b56984249e1a1363204
https://github.com/modelmapper/modelmapper/blob/491d165ded9dc9aba7ce8b56984249e1a1363204/core/src/main/java/org/modelmapper/internal/util/Iterables.java#L90-L96
62,703
modelmapper/modelmapper
core/src/main/java/org/modelmapper/internal/util/Iterables.java
Iterables.getElementFromCollection
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 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...
[ "public", "static", "Object", "getElementFromCollection", "(", "Collection", "<", "Object", ">", "collection", ",", "int", "index", ")", "{", "if", "(", "collection", ".", "size", "(", ")", "<", "index", "+", "1", ")", "return", "null", ";", "if", "(", ...
Gets the element from a collection with given index. @param collection the collection @param index the index @return null if the collection doesn't have the element at index, otherwise, return the element
[ "Gets", "the", "element", "from", "a", "collection", "with", "given", "index", "." ]
491d165ded9dc9aba7ce8b56984249e1a1363204
https://github.com/modelmapper/modelmapper/blob/491d165ded9dc9aba7ce8b56984249e1a1363204/core/src/main/java/org/modelmapper/internal/util/Iterables.java#L105-L117
62,704
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/FFcommon.java
FFcommon.version
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 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...
[ "public", "synchronized", "@", "Nonnull", "String", "version", "(", ")", "throws", "IOException", "{", "if", "(", "this", ".", "version", "==", "null", ")", "{", "Process", "p", "=", "runFunc", ".", "run", "(", "ImmutableList", ".", "of", "(", "path", ...
Returns the version string for this binary. @return the version string. @throws IOException If there is an error capturing output from the binary.
[ "Returns", "the", "version", "string", "for", "this", "binary", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/FFcommon.java#L64-L78
62,705
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/FFcommon.java
FFcommon.path
public List<String> path(List<String> args) throws IOException { return ImmutableList.<String>builder().add(path).addAll(args).build(); }
java
public List<String> path(List<String> args) throws IOException { return ImmutableList.<String>builder().add(path).addAll(args).build(); }
[ "public", "List", "<", "String", ">", "path", "(", "List", "<", "String", ">", "args", ")", "throws", "IOException", "{", "return", "ImmutableList", ".", "<", "String", ">", "builder", "(", ")", ".", "add", "(", "path", ")", ".", "addAll", "(", "args...
Returns the full path to the binary with arguments appended. @param args The arguments to pass to the binary. @return The full path and arguments to execute the binary. @throws IOException If there is an error capturing output from the binary
[ "Returns", "the", "full", "path", "to", "the", "binary", "with", "arguments", "appended", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/FFcommon.java#L91-L93
62,706
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/Preconditions.java
Preconditions.checkValidStream
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 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...
[ "public", "static", "URI", "checkValidStream", "(", "URI", "uri", ")", "throws", "IllegalArgumentException", "{", "String", "scheme", "=", "checkNotNull", "(", "uri", ")", ".", "getScheme", "(", ")", ";", "scheme", "=", "checkNotNull", "(", "scheme", ",", "\...
Checks if the URI is valid for streaming to. @param uri The URI to check @return The passed in URI if it is valid @throws IllegalArgumentException if the URI is not valid.
[ "Checks", "if", "the", "URI", "is", "valid", "for", "streaming", "to", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/Preconditions.java#L43-L59
62,707
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/PacketHeader.java
PacketHeader.read
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
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...
[ "public", "void", "read", "(", "NutDataInputStream", "in", ",", "long", "startcode", ")", "throws", "IOException", "{", "this", ".", "startcode", "=", "startcode", ";", "forwardPtr", "=", "in", ".", "readVarLong", "(", ")", ";", "if", "(", "forwardPtr", ">...
End byte of packet
[ "End", "byte", "of", "packet" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/PacketHeader.java#L15-L30
62,708
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/FFmpegOutputBuilder.java
FFmpegOutputBuilder.buildOptions
@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
@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...
[ "@", "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", ...
Returns a representation of this Builder that can be safely serialised. <p>NOTE: This method is horribly out of date, and its use should be rethought. @return A new EncodingOptions capturing this Builder's state
[ "Returns", "a", "representation", "of", "this", "Builder", "that", "can", "be", "safely", "serialised", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/FFmpegOutputBuilder.java#L186-L212
62,709
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutReader.java
NutReader.readFileId
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 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)); } }
[ "protected", "void", "readFileId", "(", ")", "throws", "IOException", "{", "byte", "[", "]", "b", "=", "new", "byte", "[", "HEADER", ".", "length", "]", ";", "in", ".", "readFully", "(", "b", ")", ";", "if", "(", "!", "Arrays", ".", "equals", "(", ...
Read the magic at the beginning of the file. @throws IOException If a I/O error occurs
[ "Read", "the", "magic", "at", "the", "beginning", "of", "the", "file", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutReader.java#L52-L60
62,710
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutReader.java
NutReader.readReservedHeaders
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
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; ...
[ "protected", "long", "readReservedHeaders", "(", ")", "throws", "IOException", "{", "long", "startcode", "=", "in", ".", "readStartCode", "(", ")", ";", "while", "(", "Startcode", ".", "isPossibleStartcode", "(", "startcode", ")", "&&", "isKnownStartcode", "(", ...
Read headers we don't know how to parse yet, returning the next startcode. @return The next startcode @throws IOException If a I/O error occurs
[ "Read", "headers", "we", "don", "t", "know", "how", "to", "parse", "yet", "returning", "the", "next", "startcode", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutReader.java#L68-L76
62,711
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutReader.java
NutReader.read
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 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...
[ "public", "void", "read", "(", ")", "throws", "IOException", "{", "readFileId", "(", ")", ";", "in", ".", "resetCRC", "(", ")", ";", "long", "startcode", "=", "in", ".", "readStartCode", "(", ")", ";", "while", "(", "true", ")", "{", "// Start parsing ...
Demux the inputstream @throws IOException If a I/O error occurs
[ "Demux", "the", "inputstream" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutReader.java#L83-L150
62,712
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setVideoFrameRate
public T setVideoFrameRate(Fraction frame_rate) { this.video_enabled = true; this.video_frame_rate = checkNotNull(frame_rate); return getThis(); }
java
public T setVideoFrameRate(Fraction frame_rate) { this.video_enabled = true; this.video_frame_rate = checkNotNull(frame_rate); return getThis(); }
[ "public", "T", "setVideoFrameRate", "(", "Fraction", "frame_rate", ")", "{", "this", ".", "video_enabled", "=", "true", ";", "this", ".", "video_frame_rate", "=", "checkNotNull", "(", "frame_rate", ")", ";", "return", "getThis", "(", ")", ";", "}" ]
Sets the video's frame rate @param frame_rate Frames per second @return this @see net.bramp.ffmpeg.FFmpeg#FPS_30 @see net.bramp.ffmpeg.FFmpeg#FPS_29_97 @see net.bramp.ffmpeg.FFmpeg#FPS_24 @see net.bramp.ffmpeg.FFmpeg#FPS_23_976
[ "Sets", "the", "video", "s", "frame", "rate" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L237-L241
62,713
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.addMetaTag
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 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(); }
[ "public", "T", "addMetaTag", "(", "String", "key", ",", "String", "value", ")", "{", "checkValidKey", "(", "key", ")", ";", "checkNotEmpty", "(", "value", ",", "\"value must not be empty\"", ")", ";", "meta_tags", ".", "add", "(", "\"-metadata\"", ")", ";", ...
Add metadata on output streams. Which keys are possible depends on the used codec. @param key Metadata key, e.g. "comment" @param value Value to set for key @return this
[ "Add", "metadata", "on", "output", "streams", ".", "Which", "keys", "are", "possible", "depends", "on", "the", "used", "codec", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L329-L335
62,714
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setAudioChannels
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 setAudioChannels(int channels) { checkArgument(channels > 0, "channels must be positive"); this.audio_enabled = true; this.audio_channels = channels; return getThis(); }
[ "public", "T", "setAudioChannels", "(", "int", "channels", ")", "{", "checkArgument", "(", "channels", ">", "0", ",", "\"channels must be positive\"", ")", ";", "this", ".", "audio_enabled", "=", "true", ";", "this", ".", "audio_channels", "=", "channels", ";"...
Sets the number of audio channels @param channels Number of channels @return this @see net.bramp.ffmpeg.FFmpeg#AUDIO_MONO @see net.bramp.ffmpeg.FFmpeg#AUDIO_STEREO
[ "Sets", "the", "number", "of", "audio", "channels" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L384-L389
62,715
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setAudioSampleRate
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 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(); }
[ "public", "T", "setAudioSampleRate", "(", "int", "sample_rate", ")", "{", "checkArgument", "(", "sample_rate", ">", "0", ",", "\"sample rate must be positive\"", ")", ";", "this", ".", "audio_enabled", "=", "true", ";", "this", ".", "audio_sample_rate", "=", "sa...
Sets the Audio sample rate, for example 44_000. @param sample_rate Samples measured in Hz @return this @see net.bramp.ffmpeg.FFmpeg#AUDIO_SAMPLE_8000 @see net.bramp.ffmpeg.FFmpeg#AUDIO_SAMPLE_11025 @see net.bramp.ffmpeg.FFmpeg#AUDIO_SAMPLE_12000 @see net.bramp.ffmpeg.FFmpeg#AUDIO_SAMPLE_16000 @see net.bramp.ffmpeg.FFm...
[ "Sets", "the", "Audio", "sample", "rate", "for", "example", "44_000", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L406-L411
62,716
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setStartOffset
public T setStartOffset(long offset, TimeUnit units) { checkNotNull(units); this.startOffset = units.toMillis(offset); return getThis(); }
java
public T setStartOffset(long offset, TimeUnit units) { checkNotNull(units); this.startOffset = units.toMillis(offset); return getThis(); }
[ "public", "T", "setStartOffset", "(", "long", "offset", ",", "TimeUnit", "units", ")", "{", "checkNotNull", "(", "units", ")", ";", "this", ".", "startOffset", "=", "units", ".", "toMillis", "(", "offset", ")", ";", "return", "getThis", "(", ")", ";", ...
Decodes but discards input until the offset. @param offset The offset @param units The units the offset is in @return this
[ "Decodes", "but", "discards", "input", "until", "the", "offset", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L432-L438
62,717
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setDuration
public T setDuration(long duration, TimeUnit units) { checkNotNull(units); this.duration = units.toMillis(duration); return getThis(); }
java
public T setDuration(long duration, TimeUnit units) { checkNotNull(units); this.duration = units.toMillis(duration); return getThis(); }
[ "public", "T", "setDuration", "(", "long", "duration", ",", "TimeUnit", "units", ")", "{", "checkNotNull", "(", "units", ")", ";", "this", ".", "duration", "=", "units", ".", "toMillis", "(", "duration", ")", ";", "return", "getThis", "(", ")", ";", "}...
Stop writing the output after duration is reached. @param duration The duration @param units The units the duration is in @return this
[ "Stop", "writing", "the", "output", "after", "duration", "is", "reached", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L447-L453
62,718
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setAudioPreset
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 setAudioPreset(String preset) { this.audio_enabled = true; this.audio_preset = checkNotEmpty(preset, "audio preset must not be empty"); return getThis(); }
[ "public", "T", "setAudioPreset", "(", "String", "preset", ")", "{", "this", ".", "audio_enabled", "=", "true", ";", "this", ".", "audio_preset", "=", "checkNotEmpty", "(", "preset", ",", "\"audio preset must not be empty\"", ")", ";", "return", "getThis", "(", ...
Sets a audio preset to use. <p>Uses `-apre`. @param preset the preset @return this
[ "Sets", "a", "audio", "preset", "to", "use", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L480-L484
62,719
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java
AbstractFFmpegStreamBuilder.setSubtitlePreset
public T setSubtitlePreset(String preset) { this.subtitle_enabled = true; this.subtitle_preset = checkNotEmpty(preset, "subtitle 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(); }
[ "public", "T", "setSubtitlePreset", "(", "String", "preset", ")", "{", "this", ".", "subtitle_enabled", "=", "true", ";", "this", ".", "subtitle_preset", "=", "checkNotEmpty", "(", "preset", ",", "\"subtitle preset must not be empty\"", ")", ";", "return", "getThi...
Sets a subtitle preset to use. <p>Uses `-spre`. @param preset the preset @return this
[ "Sets", "a", "subtitle", "preset", "to", "use", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegStreamBuilder.java#L494-L498
62,720
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java
NutDataInputStream.readVarInt
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 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; }
[ "public", "int", "readVarInt", "(", ")", "throws", "IOException", "{", "boolean", "more", ";", "int", "result", "=", "0", ";", "do", "{", "int", "b", "=", "in", ".", "readUnsignedByte", "(", ")", ";", "more", "=", "(", "b", "&", "0x80", ")", "==", ...
Read a simple var int up to 32 bits
[ "Read", "a", "simple", "var", "int", "up", "to", "32", "bits" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java#L42-L54
62,721
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java
NutDataInputStream.readVarLong
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 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; }
[ "public", "long", "readVarLong", "(", ")", "throws", "IOException", "{", "boolean", "more", ";", "long", "result", "=", "0", ";", "do", "{", "int", "b", "=", "in", ".", "readUnsignedByte", "(", ")", ";", "more", "=", "(", "b", "&", "0x80", ")", "==...
Read a simple var int up to 64 bits
[ "Read", "a", "simple", "var", "int", "up", "to", "64", "bits" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java#L57-L69
62,722
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java
NutDataInputStream.readVarArray
public byte[] readVarArray() throws IOException { int len = (int) readVarLong(); byte[] result = new byte[len]; in.read(result); return result; }
java
public byte[] readVarArray() throws IOException { int len = (int) readVarLong(); byte[] result = new byte[len]; in.read(result); return result; }
[ "public", "byte", "[", "]", "readVarArray", "(", ")", "throws", "IOException", "{", "int", "len", "=", "(", "int", ")", "readVarLong", "(", ")", ";", "byte", "[", "]", "result", "=", "new", "byte", "[", "len", "]", ";", "in", ".", "read", "(", "r...
Read a array with a varint prefixed length
[ "Read", "a", "array", "with", "a", "varint", "prefixed", "length" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java#L81-L86
62,723
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java
NutDataInputStream.readStartCode
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 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)...
[ "public", "long", "readStartCode", "(", ")", "throws", "IOException", "{", "byte", "frameCode", "=", "in", ".", "readByte", "(", ")", ";", "if", "(", "frameCode", "!=", "'", "'", ")", "{", "return", "(", "long", ")", "(", "frameCode", "&", "0xff", ")...
Returns the start code, OR frame_code if the code doesn't start with 'N'
[ "Returns", "the", "start", "code", "OR", "frame_code", "if", "the", "code", "doesn", "t", "start", "with", "N" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/nut/NutDataInputStream.java#L89-L107
62,724
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/StreamSpecifier.java
StreamSpecifier.stream
public static StreamSpecifier stream(StreamSpecifierType type, int index) { checkNotNull(type); return new StreamSpecifier(type.toString() + ":" + index); }
java
public static StreamSpecifier stream(StreamSpecifierType type, int index) { checkNotNull(type); return new StreamSpecifier(type.toString() + ":" + index); }
[ "public", "static", "StreamSpecifier", "stream", "(", "StreamSpecifierType", "type", ",", "int", "index", ")", "{", "checkNotNull", "(", "type", ")", ";", "return", "new", "StreamSpecifier", "(", "type", ".", "toString", "(", ")", "+", "\":\"", "+", "index",...
Matches the stream number stream_index of this type. @param type The stream type @param index The stream index @return A new StreamSpecifier
[ "Matches", "the", "stream", "number", "stream_index", "of", "this", "type", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/StreamSpecifier.java#L47-L50
62,725
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/builder/StreamSpecifier.java
StreamSpecifier.tag
public static StreamSpecifier tag(String key, String value) { checkValidKey(key); checkNotNull(value); return new StreamSpecifier("m:" + key + ":" + value); }
java
public static StreamSpecifier tag(String key, String value) { checkValidKey(key); checkNotNull(value); return new StreamSpecifier("m:" + key + ":" + value); }
[ "public", "static", "StreamSpecifier", "tag", "(", "String", "key", ",", "String", "value", ")", "{", "checkValidKey", "(", "key", ")", ";", "checkNotNull", "(", "value", ")", ";", "return", "new", "StreamSpecifier", "(", "\"m:\"", "+", "key", "+", "\":\""...
Matches streams with the metadata tag key having the specified value. @param key The metadata tag @param value The metatdata's value @return A new StreamSpecifier
[ "Matches", "streams", "with", "the", "metadata", "tag", "key", "having", "the", "specified", "value", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/builder/StreamSpecifier.java#L100-L104
62,726
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/progress/Progress.java
Progress.parseLine
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
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...
[ "protected", "boolean", "parseLine", "(", "String", "line", ")", "{", "line", "=", "checkNotNull", "(", "line", ")", ".", "trim", "(", ")", ";", "if", "(", "line", ".", "isEmpty", "(", ")", ")", "{", "return", "false", ";", "// Skip empty lines", "}", ...
Parses values from the line, into this object. <p>The value options are defined in ffmpeg.c's print_report function https://github.com/FFmpeg/FFmpeg/blob/master/ffmpeg.c @param line A single line of output from ffmpeg @return true if the record is finished
[ "Parses", "values", "from", "the", "line", "into", "this", "object", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/progress/Progress.java#L114-L199
62,727
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/progress/AbstractSocketProgressParser.java
AbstractSocketProgressParser.createUri
@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
@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 */, ...
[ "@", "CheckReturnValue", "static", "URI", "createUri", "(", "String", "scheme", ",", "InetAddress", "address", ",", "int", "port", ")", "throws", "URISyntaxException", "{", "checkNotNull", "(", "address", ")", ";", "return", "new", "URI", "(", "scheme", ",", ...
Creates a URL to parse to FFmpeg based on the scheme, address and port. <p>TODO Move this method to somewhere better. @param scheme @param address @param port @return @throws URISyntaxException
[ "Creates", "a", "URL", "to", "parse", "to", "FFmpeg", "based", "on", "the", "scheme", "address", "and", "port", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/progress/AbstractSocketProgressParser.java#L35-L46
62,728
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/progress/AbstractSocketProgressParser.java
AbstractSocketProgressParser.start
@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
@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...
[ "@", "Override", "public", "synchronized", "void", "start", "(", ")", "{", "if", "(", "thread", "!=", "null", ")", "{", "throw", "new", "IllegalThreadStateException", "(", "\"Parser already started\"", ")", ";", "}", "String", "name", "=", "getThreadName", "("...
Starts the ProgressParser waiting for progress. @exception IllegalThreadStateException if the parser was already started.
[ "Starts", "the", "ProgressParser", "waiting", "for", "progress", "." ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/progress/AbstractSocketProgressParser.java#L58-L78
62,729
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/FFmpegUtils.java
FFmpegUtils.parseBitrate
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 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); ...
[ "public", "static", "long", "parseBitrate", "(", "String", "bitrate", ")", "{", "if", "(", "\"N/A\"", ".", "equals", "(", "bitrate", ")", ")", "{", "return", "-", "1", ";", "}", "Matcher", "m", "=", "BITRATE_REGEX", ".", "matcher", "(", "bitrate", ")",...
Converts a string representation of bitrate to a long of bits per second @param bitrate in the form of 12.3kbits/s @return the bitrate in bits per second or -1 if bitrate is 'N/A'
[ "Converts", "a", "string", "representation", "of", "bitrate", "to", "a", "long", "of", "bits", "per", "second" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/FFmpegUtils.java#L100-L110
62,730
bramp/ffmpeg-cli-wrapper
src/main/java/net/bramp/ffmpeg/io/ProcessUtils.java
ProcessUtils.waitForWithTimeout
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 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()...
[ "public", "static", "int", "waitForWithTimeout", "(", "final", "Process", "p", ",", "long", "timeout", ",", "TimeUnit", "unit", ")", "throws", "TimeoutException", "{", "ProcessThread", "t", "=", "new", "ProcessThread", "(", "p", ")", ";", "t", ".", "start", ...
Waits until a process finishes or a timeout occurs @param p process @param timeout timeout in given unit @param unit time unit @return the process exit value @throws TimeoutException if a timeout occurs
[ "Waits", "until", "a", "process", "finishes", "or", "a", "timeout", "occurs" ]
3819b155edf9132acc75bb6af66dcef1b98c64b2
https://github.com/bramp/ffmpeg-cli-wrapper/blob/3819b155edf9132acc75bb6af66dcef1b98c64b2/src/main/java/net/bramp/ffmpeg/io/ProcessUtils.java#L50-L68
62,731
minio/minio-java
api/src/main/java/io/minio/Result.java
Result.get
public T get() throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { if (ex == null) { return type; } if (ex instanceo...
java
public T get() throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { if (ex == null) { return type; } if (ex instanceo...
[ "public", "T", "get", "(", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullParserException", ",", "ErrorResponseException",...
Returns given Type if exception is null, else respective exception is thrown.
[ "Returns", "given", "Type", "if", "exception", "is", "null", "else", "respective", "exception", "is", "thrown", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Result.java#L49-L76
62,732
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.isValidEndpoint
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 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...
[ "private", "boolean", "isValidEndpoint", "(", "String", "endpoint", ")", "{", "if", "(", "InetAddressValidator", ".", "getInstance", "(", ")", ".", "isValid", "(", "endpoint", ")", ")", "{", "return", "true", ";", "}", "// endpoint may be a hostname", "// refer ...
Returns true if given endpoint is valid else false.
[ "Returns", "true", "if", "given", "endpoint", "is", "valid", "else", "false", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L728-L751
62,733
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.checkBucketName
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
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) { ...
[ "private", "void", "checkBucketName", "(", "String", "name", ")", "throws", "InvalidBucketNameException", "{", "if", "(", "name", "==", "null", ")", "{", "throw", "new", "InvalidBucketNameException", "(", "NULL_STRING", ",", "\"null bucket name\"", ")", ";", "}", ...
Validates if given bucket name is DNS compatible. @throws InvalidBucketNameException upon invalid bucket name is given
[ "Validates", "if", "given", "bucket", "name", "is", "DNS", "compatible", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L759-L781
62,734
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.setTimeout
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
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(...
[ "public", "void", "setTimeout", "(", "long", "connectTimeout", ",", "long", "writeTimeout", ",", "long", "readTimeout", ")", "{", "this", ".", "httpClient", "=", "this", ".", "httpClient", ".", "newBuilder", "(", ")", ".", "connectTimeout", "(", "connectTimeou...
Sets HTTP connect, write and read timeouts. A value of 0 means no timeout, otherwise values must be between 1 and Integer.MAX_VALUE when converted to milliseconds. </p><b>Example:</b><br> <pre>{@code minioClient.setTimeout(TimeUnit.SECONDS.toMillis(10), TimeUnit.SECONDS.toMillis(10), TimeUnit.SECONDS.toMillis(30)); }...
[ "Sets", "HTTP", "connect", "write", "and", "read", "timeouts", ".", "A", "value", "of", "0", "means", "no", "timeout", "otherwise", "values", "must", "be", "between", "1", "and", "Integer", ".", "MAX_VALUE", "when", "converted", "to", "milliseconds", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L796-L802
62,735
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.ignoreCertCheck
@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
@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...
[ "@", "SuppressFBWarnings", "(", "value", "=", "\"SIC\"", ",", "justification", "=", "\"Should not be used in production anyways.\"", ")", "public", "void", "ignoreCertCheck", "(", ")", "throws", "NoSuchAlgorithmException", ",", "KeyManagementException", "{", "final", "Tru...
Ignores check on server certificate for HTTPS connection. </p><b>Example:</b><br> <pre>{@code minioClient.ignoreCertCheck(); }</pre>
[ "Ignores", "check", "on", "server", "certificate", "for", "HTTPS", "connection", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L812-L843
62,736
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.shouldOmitPortInHostHeader
private boolean shouldOmitPortInHostHeader(HttpUrl url) { return (url.scheme().equals("http") && url.port() == 80) || (url.scheme().equals("https") && url.port() == 443); }
java
private boolean shouldOmitPortInHostHeader(HttpUrl url) { return (url.scheme().equals("http") && url.port() == 80) || (url.scheme().equals("https") && url.port() == 443); }
[ "private", "boolean", "shouldOmitPortInHostHeader", "(", "HttpUrl", "url", ")", "{", "return", "(", "url", ".", "scheme", "(", ")", ".", "equals", "(", "\"http\"", ")", "&&", "url", ".", "port", "(", ")", "==", "80", ")", "||", "(", "url", ".", "sche...
Checks whether port should be omitted in Host header. <p> HTTP Spec (rfc2616) defines that port should be omitted in Host header when port and service matches (i.e HTTP -> 80, HTTPS -> 443) @param url Url object
[ "Checks", "whether", "port", "should", "be", "omitted", "in", "Host", "header", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1031-L1034
62,737
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.execute
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 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...
[ "private", "HttpResponse", "execute", "(", "Method", "method", ",", "String", "region", ",", "String", "bucketName", ",", "String", "objectName", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ",", "Map", "<", "String", ",", "String", ">", "qu...
Executes given request parameters. @param method HTTP method. @param region Amazon S3 region of the bucket. @param bucketName Bucket name. @param objectName Object name in the bucket. @param headerMap Map of HTTP headers for the request. @param queryParamMap Map of HTTP query parameters o...
[ "Executes", "given", "request", "parameters", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1049-L1071
62,738
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.updateRegionCache
private void updateRegionCache(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { if (bucketName != null && thi...
java
private void updateRegionCache(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { if (bucketName != null && thi...
[ "private", "void", "updateRegionCache", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullParser...
Updates Region cache for given bucket.
[ "Updates", "Region", "cache", "for", "given", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1210-L1253
62,739
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getRegion
private String getRegion(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { String region; if (this.region == nul...
java
private String getRegion(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { String region; if (this.region == nul...
[ "private", "String", "getRegion", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullParserExcept...
Computes region of a given bucket name. If set, this.region is considered. Otherwise, resort to the server location API.
[ "Computes", "region", "of", "a", "given", "bucket", "name", ".", "If", "set", "this", ".", "region", "is", "considered", ".", "Otherwise", "resort", "to", "the", "server", "location", "API", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1259-L1270
62,740
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getText
private String getText(XmlPullParser xpp) throws XmlPullParserException { if (xpp.getEventType() == XmlPullParser.TEXT) { return xpp.getText(); } return null; }
java
private String getText(XmlPullParser xpp) throws XmlPullParserException { if (xpp.getEventType() == XmlPullParser.TEXT) { return xpp.getText(); } return null; }
[ "private", "String", "getText", "(", "XmlPullParser", "xpp", ")", "throws", "XmlPullParserException", "{", "if", "(", "xpp", ".", "getEventType", "(", ")", "==", "XmlPullParser", ".", "TEXT", ")", "{", "return", "xpp", ".", "getText", "(", ")", ";", "}", ...
Returns text of given XML element. @throws XmlPullParserException upon parsing response xml
[ "Returns", "text", "of", "given", "XML", "element", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1277-L1282
62,741
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.executeGet
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 executeGet(String bucketName, String objectName, Map<String,String> headerMap, Map<String,String> queryParamMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseExcep...
[ "private", "HttpResponse", "executeGet", "(", "String", "bucketName", ",", "String", "objectName", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ",", "Map", "<", "String", ",", "String", ">", "queryParamMap", ")", "throws", "InvalidBucketNameExcept...
Executes GET method for given request parameters. @param bucketName Bucket name. @param objectName Object name in the bucket. @param headerMap Map of HTTP headers for the request. @param queryParamMap Map of HTTP query parameters of the request.
[ "Executes", "GET", "method", "for", "given", "request", "parameters", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1293-L1299
62,742
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.executeHead
private HttpResponse executeHead(String bucketName, String objectName, Map<String,String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, In...
java
private HttpResponse executeHead(String bucketName, String objectName, Map<String,String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, In...
[ "private", "HttpResponse", "executeHead", "(", "String", "bucketName", ",", "String", "objectName", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException"...
Executes HEAD method for given request parameters. @param bucketName Bucket name. @param objectName Object name in the bucket. @param headerMap Map of header parameters of the request.
[ "Executes", "HEAD", "method", "for", "given", "request", "parameters", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1325-L1334
62,743
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.executeDelete
private HttpResponse executeDelete(String bucketName, String objectName, Map<String,String> queryParamMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, ...
java
private HttpResponse executeDelete(String bucketName, String objectName, Map<String,String> queryParamMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, ...
[ "private", "HttpResponse", "executeDelete", "(", "String", "bucketName", ",", "String", "objectName", ",", "Map", "<", "String", ",", "String", ">", "queryParamMap", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataExce...
Executes DELETE method for given request parameters. @param bucketName Bucket name. @param objectName Object name in the bucket. @param queryParamMap Map of HTTP query parameters of the request.
[ "Executes", "DELETE", "method", "for", "given", "request", "parameters", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1343-L1351
62,744
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.executePost
private HttpResponse executePost(String bucketName, String objectName, Map<String,String> headerMap, Map<String,String> queryParamMap, Object data) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, ...
java
private HttpResponse executePost(String bucketName, String objectName, Map<String,String> headerMap, Map<String,String> queryParamMap, Object data) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, ...
[ "private", "HttpResponse", "executePost", "(", "String", "bucketName", ",", "String", "objectName", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ",", "Map", "<", "String", ",", "String", ">", "queryParamMap", ",", "Object", "data", ")", "throw...
Executes POST method for given request parameters. @param bucketName Bucket name. @param objectName Object name in the bucket. @param headerMap Map of HTTP headers for the request. @param queryParamMap Map of HTTP query parameters of the request. @param data HTTP request body data.
[ "Executes", "POST", "method", "for", "given", "request", "parameters", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1363-L1369
62,745
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getObjectUrl
public String getObjectUrl(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Request reques...
java
public String getObjectUrl(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Request reques...
[ "public", "String", "getObjectUrl", "(", "String", "bucketName", ",", "String", "objectName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseExce...
Gets object's URL in given bucket. The URL is ONLY useful to retrieve the object's data if the object has public read permissions. <p><b>Example:</b> <pre>{@code String url = minioClient.getObjectUrl("my-bucketname", "my-objectname"); System.out.println(url); }</pre> @param bucketName Bucket name. @param objectName ...
[ "Gets", "object", "s", "URL", "in", "given", "bucket", ".", "The", "URL", "is", "ONLY", "useful", "to", "retrieve", "the", "object", "s", "data", "if", "the", "object", "has", "public", "read", "permissions", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L1560-L1568
62,746
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.copyObject
public void copyObject(String bucketName, String objectName, String destBucketName) throws InvalidKeyException, InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, NoResponseException, ErrorResponseException, InternalException, IOException, XmlPullParserException, InvalidA...
java
public void copyObject(String bucketName, String objectName, String destBucketName) throws InvalidKeyException, InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, NoResponseException, ErrorResponseException, InternalException, IOException, XmlPullParserException, InvalidA...
[ "public", "void", "copyObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "String", "destBucketName", ")", "throws", "InvalidKeyException", ",", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "NoR...
Copy a source object into a new destination object with same object name. </p> <b>Example:</b><br> <pre> {@code minioClient.copyObject("my-bucketname", "my-objectname", "my-destbucketname");} </pre> @param bucketName Bucket name where the object to be copied exists. @param objectName Object name source to be copied....
[ "Copy", "a", "source", "object", "into", "a", "new", "destination", "object", "with", "same", "object", "name", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2008-L2014
62,747
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getPresignedObjectUrl
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 getPresignedObjectUrl(Method method, String bucketName, String objectName, Integer expires, Map<String, String> reqParams) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoRespon...
[ "public", "String", "getPresignedObjectUrl", "(", "Method", "method", ",", "String", "bucketName", ",", "String", "objectName", ",", "Integer", "expires", ",", "Map", "<", "String", ",", "String", ">", "reqParams", ")", "throws", "InvalidBucketNameException", ",",...
Returns a presigned URL string with given HTTP method, expiry time and custom request params for a specific object in the bucket. </p><b>Example:</b><br> <pre>{@code String url = minioClient.getPresignedObjectUrl(Method.DELETE, "my-bucketname", "my-objectname", 60 * 60 * 24, reqParams); System.out.println(url); }</pre...
[ "Returns", "a", "presigned", "URL", "string", "with", "given", "HTTP", "method", "expiry", "time", "and", "custom", "request", "params", "for", "a", "specific", "object", "in", "the", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2343-L2370
62,748
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.presignedGetObject
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, Map<String, String> reqParams) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullP...
[ "public", "String", "presignedGetObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "Integer", "expires", ",", "Map", "<", "String", ",", "String", ">", "reqParams", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", "...
Returns an presigned URL to download the object in the bucket with given expiry time with custom request params. </p><b>Example:</b><br> <pre>{@code String url = minioClient.presignedGetObject("my-bucketname", "my-objectname", 60 * 60 * 24, reqParams); System.out.println(url); }</pre> @param bucketName Bucket name. ...
[ "Returns", "an", "presigned", "URL", "to", "download", "the", "object", "in", "the", "bucket", "with", "given", "expiry", "time", "with", "custom", "request", "params", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2401-L2407
62,749
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.presignedGetObject
public String presignedGetObject(String bucketName, String objectName, Integer expires) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcepti...
java
public String presignedGetObject(String bucketName, String objectName, Integer expires) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcepti...
[ "public", "String", "presignedGetObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "Integer", "expires", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "Invalid...
Returns an presigned URL to download the object in the bucket with given expiry time. </p><b>Example:</b><br> <pre>{@code String url = minioClient.presignedGetObject("my-bucketname", "my-objectname", 60 * 60 * 24); System.out.println(url); }</pre> @param bucketName Bucket name. @param objectName Object name in the ...
[ "Returns", "an", "presigned", "URL", "to", "download", "the", "object", "in", "the", "bucket", "with", "given", "expiry", "time", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2436-L2441
62,750
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.presignedPutObject
public String presignedPutObject(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...
[ "public", "String", "presignedPutObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "Integer", "expires", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "Invalid...
Returns a presigned URL to upload an object in the bucket with given expiry time. </p><b>Example:</b><br> <pre>{@code String url = minioClient.presignedPutObject("my-bucketname", "my-objectname", 60 * 60 * 24); System.out.println(url); }</pre> @param bucketName Bucket name @param objectName Object name in the bucke...
[ "Returns", "a", "presigned", "URL", "to", "upload", "an", "object", "in", "the", "bucket", "with", "given", "expiry", "time", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2506-L2511
62,751
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.removeObject
public void removeObject(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentExcept...
java
public void removeObject(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentExcept...
[ "public", "void", "removeObject", "(", "String", "bucketName", ",", "String", "objectName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseExcept...
Removes an object from a bucket. </p><b>Example:</b><br> <pre>{@code minioClient.removeObject("my-bucketname", "my-objectname"); }</pre> @param bucketName Bucket name. @param objectName Object name in the bucket. @throws InvalidBucketNameException upon invalid bucket name is given @throws NoSuchAlgorithmException u...
[ "Removes", "an", "object", "from", "a", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2615-L2628
62,752
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.listObjects
public Iterable<Result<Item>> listObjects(final String bucketName) throws XmlPullParserException { return listObjects(bucketName, null); }
java
public Iterable<Result<Item>> listObjects(final String bucketName) throws XmlPullParserException { return listObjects(bucketName, null); }
[ "public", "Iterable", "<", "Result", "<", "Item", ">", ">", "listObjects", "(", "final", "String", "bucketName", ")", "throws", "XmlPullParserException", "{", "return", "listObjects", "(", "bucketName", ",", "null", ")", ";", "}" ]
Lists object information in given bucket. @param bucketName Bucket name. @return an iterator of Result Items. * @throws XmlPullParserException upon parsing response xml
[ "Lists", "object", "information", "in", "given", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2797-L2799
62,753
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.listObjects
public Iterable<Result<Item>> listObjects(final String bucketName, final String prefix) throws XmlPullParserException { // list all objects recursively return listObjects(bucketName, prefix, true); }
java
public Iterable<Result<Item>> listObjects(final String bucketName, final String prefix) throws XmlPullParserException { // list all objects recursively return listObjects(bucketName, prefix, true); }
[ "public", "Iterable", "<", "Result", "<", "Item", ">", ">", "listObjects", "(", "final", "String", "bucketName", ",", "final", "String", "prefix", ")", "throws", "XmlPullParserException", "{", "// list all objects recursively", "return", "listObjects", "(", "bucketN...
Lists object information in given bucket and prefix. @param bucketName Bucket name. @param prefix Prefix string. List objects whose name starts with `prefix`. @return an iterator of Result Items. @throws XmlPullParserException upon parsing response xml
[ "Lists", "object", "information", "in", "given", "bucket", "and", "prefix", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L2812-L2816
62,754
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.listBuckets
public List<Bucket> listBuckets() throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { HttpResponse response = executeGet(null, null...
java
public List<Bucket> listBuckets() throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { HttpResponse response = executeGet(null, null...
[ "public", "List", "<", "Bucket", ">", "listBuckets", "(", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullParserException...
Returns all bucket information owned by the current user. </p><b>Example:</b><br> <pre>{@code List<Bucket> bucketList = minioClient.listBuckets(); for (Bucket bucket : bucketList) { System.out.println(bucket.creationDate() + ", " + bucket.name()); } }</pre> @return List of bucket type. @throws InvalidBucketNameExcep...
[ "Returns", "all", "bucket", "information", "owned", "by", "the", "current", "user", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L3241-L3250
62,755
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.bucketExists
public boolean bucketExists(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { try { executeHead(bucketNa...
java
public boolean bucketExists(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { try { executeHead(bucketNa...
[ "public", "boolean", "bucketExists", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullParserExc...
Checks if given bucket exist and is having read access. </p><b>Example:</b><br> <pre>{@code boolean found = minioClient.bucketExists("my-bucketname"); if (found) { System.out.println("my-bucketname exists"); } else { System.out.println("my-bucketname does not exist"); } }</pre> @param bucketName Bucket name. @return...
[ "Checks", "if", "given", "bucket", "exist", "and", "is", "having", "read", "access", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L3281-L3295
62,756
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.makeBucket
public void makeBucket(String bucketName) throws InvalidBucketNameException, RegionConflictException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { th...
java
public void makeBucket(String bucketName) throws InvalidBucketNameException, RegionConflictException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { th...
[ "public", "void", "makeBucket", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "RegionConflictException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseExcepti...
Creates a bucket with default region. @param bucketName Bucket name. @throws InvalidBucketNameException upon invalid bucket name is given @throws NoSuchAlgorithmException upon requested algorithm was not found during signature calculation @throws IOException upon connection error @throws InvalidKeyEx...
[ "Creates", "a", "bucket", "with", "default", "region", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L3316-L3321
62,757
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.makeBucket
public void makeBucket(String bucketName, String region) throws InvalidBucketNameException, RegionConflictException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExc...
java
public void makeBucket(String bucketName, String region) throws InvalidBucketNameException, RegionConflictException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExc...
[ "public", "void", "makeBucket", "(", "String", "bucketName", ",", "String", "region", ")", "throws", "InvalidBucketNameException", ",", "RegionConflictException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyExceptio...
Creates a bucket with given region. </p><b>Example:</b><br> <pre>{@code minioClient.makeBucket("my-bucketname"); System.out.println("my-bucketname is created successfully"); }</pre> @param bucketName Bucket name. @param region region in which the bucket will be created. @throws InvalidBucketNameException upon i...
[ "Creates", "a", "bucket", "with", "given", "region", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L3349-L3374
62,758
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.putObject
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 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...
[ "private", "String", "putObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "int", "length", ",", "Object", "data", ",", "String", "uploadId", ",", "int", "partNumber", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ")", "...
Executes put object and returns ETag of the object. @param bucketName Bucket name. @param objectName Object name in the bucket. @param length Length of object data. @param data Object data. @param uploadId Upload ID of multipart put object. @param partNumber Part number of multipart put object.
[ "Executes", "put", "object", "and", "returns", "ETag", "of", "the", "object", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L3985-L4004
62,759
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.putObject
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
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...
[ "private", "void", "putObject", "(", "String", "bucketName", ",", "String", "objectName", ",", "Long", "size", ",", "Object", "data", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ",", "ServerSideEncryption", "sse", ")", "throws", "InvalidBucketN...
Executes put object. If size of object data is <= 5MiB, single put object is used else multipart put object is used. @param bucketName Bucket name. @param objectName Object name in the bucket. @param size Size of object data. @param data Object data.
[ "Executes", "put", "object", ".", "If", "size", "of", "object", "data", "is", "<", "=", "5MiB", "single", "put", "object", "is", "used", "else", "multipart", "put", "object", "is", "used", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4020-L4104
62,760
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getBucketPolicy
public String getBucketPolicy(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, Bucke...
java
public String getBucketPolicy(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, Bucke...
[ "public", "String", "getBucketPolicy", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "InvalidObjectPrefixException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoRes...
Get JSON string of bucket policy of the given bucket. @param bucketName the name of the bucket for which policies are to be listed. </p><b>Example:</b><br> <pre>{@code String policyString = minioClient.getBucketPolicy("my-bucketname"); }</pre> @return bucket policy JSON string. @throws InvalidBucketNameException ...
[ "Get", "JSON", "string", "of", "bucket", "policy", "of", "the", "given", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4145-L4188
62,761
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.setBucketPolicy
public void setBucketPolicy(String bucketName, String policy) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExc...
java
public void setBucketPolicy(String bucketName, String policy) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExc...
[ "public", "void", "setBucketPolicy", "(", "String", "bucketName", ",", "String", "policy", ")", "throws", "InvalidBucketNameException", ",", "InvalidObjectPrefixException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidK...
Set JSON string of policy on given bucket. @param bucketName Bucket name. @param policy Bucket policy JSON string. </p><b>Example:</b><br> <pre>{@code StringBuilder builder = new StringBuilder(); builder.append("{\n"); builder.append(" \"Statement\": [\n"); builder.append(" {\n"); builder.append(" ...
[ "Set", "JSON", "string", "of", "policy", "on", "given", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4235-L4247
62,762
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.deleteBucketLifeCycle
public void deleteBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> que...
java
public void deleteBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> que...
[ "public", "void", "deleteBucketLifeCycle", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullPar...
Delete the LifeCycle of bucket. @param bucketName Bucket name. </p><b>Example:</b><br> <pre>{@code deleteBucketLifeCycle("my-bucketname"); }</pre> @throws InvalidBucketNameException upon invalid bucket name is given @throws NoSuchAlgorithmException upon requested algorithm was not found during signature calcul...
[ "Delete", "the", "LifeCycle", "of", "bucket", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4307-L4315
62,763
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getBucketLifeCycle
public String getBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> quer...
java
public String getBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> quer...
[ "public", "String", "getBucketLifeCycle", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResponseException", ",", "XmlPullPars...
Get bucket life cycle configuration. @param bucketName Bucket name. </p><b>Example:</b><br> <pre>{@code String bucketLifeCycle = minioClient.getBucketLifecycle("my-bucketname"); }</pre> @throws InvalidBucketNameException upon invalid bucket name is given @throws NoSuchAlgorithmException upon requested algorithm...
[ "Get", "bucket", "life", "cycle", "configuration", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4337-L4367
62,764
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getBucketNotification
public NotificationConfiguration getBucketNotification(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,...
java
public NotificationConfiguration getBucketNotification(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,...
[ "public", "NotificationConfiguration", "getBucketNotification", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "InvalidObjectPrefixException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyEx...
Get bucket notification configuration @param bucketName Bucket name. </p><b>Example:</b><br> <pre>{@code NotificationConfiguration notificationConfig = minioClient.getBucketNotification("my-bucketname"); }</pre> @throws InvalidBucketNameException upon invalid bucket name is given @throws InvalidObjectPrefixExcept...
[ "Get", "bucket", "notification", "configuration" ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4393-L4409
62,765
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.setBucketNotification
public void setBucketNotification(String bucketName, NotificationConfiguration notificationConfiguration) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserEx...
java
public void setBucketNotification(String bucketName, NotificationConfiguration notificationConfiguration) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserEx...
[ "public", "void", "setBucketNotification", "(", "String", "bucketName", ",", "NotificationConfiguration", "notificationConfiguration", ")", "throws", "InvalidBucketNameException", ",", "InvalidObjectPrefixException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException"...
Set bucket notification configuration @param bucketName Bucket name. @param notificationConfiguration Notification configuration to be set. </p><b>Example:</b><br> <pre>{@code minioClient.setBucketNotification("my-bucketname", notificationConfiguration); }</pre> @throws InvalidBucketNameException upon invalid b...
[ "Set", "bucket", "notification", "configuration" ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4437-L4445
62,766
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.removeAllBucketNotification
public void removeAllBucketNotification(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcept...
java
public void removeAllBucketNotification(String bucketName) throws InvalidBucketNameException, InvalidObjectPrefixException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcept...
[ "public", "void", "removeAllBucketNotification", "(", "String", "bucketName", ")", "throws", "InvalidBucketNameException", ",", "InvalidObjectPrefixException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ","...
Remove all bucket notification. @param bucketName Bucket name. </p><b>Example:</b><br> <pre>{@code minioClient.removeAllBucketNotification("my-bucketname"); }</pre> @throws InvalidBucketNameException upon invalid bucket name is given @throws InvalidObjectPrefixException upon invalid object prefix. @throws NoSuchA...
[ "Remove", "all", "bucket", "notification", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4472-L4478
62,767
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.listIncompleteUploads
public Iterable<Result<Upload>> listIncompleteUploads(String bucketName, String prefix) throws XmlPullParserException { return listIncompleteUploads(bucketName, prefix, true, true); }
java
public Iterable<Result<Upload>> listIncompleteUploads(String bucketName, String prefix) throws XmlPullParserException { return listIncompleteUploads(bucketName, prefix, true, true); }
[ "public", "Iterable", "<", "Result", "<", "Upload", ">", ">", "listIncompleteUploads", "(", "String", "bucketName", ",", "String", "prefix", ")", "throws", "XmlPullParserException", "{", "return", "listIncompleteUploads", "(", "bucketName", ",", "prefix", ",", "tr...
Lists incomplete uploads of objects in given bucket and prefix. @param bucketName Bucket name. @param prefix filters the list of uploads to include only those that start with prefix. @return an iterator of Upload. @throws XmlPullParserException upon parsing response xml @see #listIncompleteUploads(String, Strin...
[ "Lists", "incomplete", "uploads", "of", "objects", "in", "given", "bucket", "and", "prefix", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4503-L4506
62,768
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.initMultipartUpload
private String initMultipartUpload(String bucketName, String objectName, Map<String, String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, ...
java
private String initMultipartUpload(String bucketName, String objectName, Map<String, String> headerMap) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, ...
[ "private", "String", "initMultipartUpload", "(", "String", "bucketName", ",", "String", "objectName", ",", "Map", "<", "String", ",", "String", ">", "headerMap", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataExceptio...
Initializes new multipart upload for given bucket name, object name and content type.
[ "Initializes", "new", "multipart", "upload", "for", "given", "bucket", "name", "object", "name", "and", "content", "type", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4722-L4740
62,769
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.completeMultipart
private void completeMultipart(String bucketName, String objectName, String uploadId, Part[] parts) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, Int...
java
private void completeMultipart(String bucketName, String objectName, String uploadId, Part[] parts) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, Int...
[ "private", "void", "completeMultipart", "(", "String", "bucketName", ",", "String", "objectName", ",", "String", "uploadId", ",", "Part", "[", "]", "parts", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ...
Executes complete multipart upload of given bucket name, object name, upload ID and parts.
[ "Executes", "complete", "multipart", "upload", "of", "given", "bucket", "name", "object", "name", "upload", "ID", "and", "parts", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4746-L4778
62,770
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.abortMultipartUpload
private void abortMultipartUpload(String bucketName, String objectName, String uploadId) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcept...
java
private void abortMultipartUpload(String bucketName, String objectName, String uploadId) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalExcept...
[ "private", "void", "abortMultipartUpload", "(", "String", "bucketName", ",", "String", "objectName", ",", "String", "uploadId", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "Invali...
Aborts multipart upload of given bucket name, object name and upload ID.
[ "Aborts", "multipart", "upload", "of", "given", "bucket", "name", "object", "name", "and", "upload", "ID", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4907-L4914
62,771
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.removeIncompleteUpload
public void removeIncompleteUpload(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { for (R...
java
public void removeIncompleteUpload(String bucketName, String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { for (R...
[ "public", "void", "removeIncompleteUpload", "(", "String", "bucketName", ",", "String", "objectName", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgorithmException", ",", "InsufficientDataException", ",", "IOException", ",", "InvalidKeyException", ",", "NoResp...
Removes incomplete multipart upload of given object. </p><b>Example:</b><br> <pre>{@code minioClient.removeIncompleteUpload("my-bucketname", "my-objectname"); System.out.println("successfully removed all incomplete upload session of my-bucketname/my-objectname"); }</pre> @param bucketName Bucket name. @param objectNa...
[ "Removes", "incomplete", "multipart", "upload", "of", "given", "object", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4940-L4951
62,772
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.listenBucketNotification
public void listenBucketNotification(String bucketName, String prefix, String suffix, String[] events, BucketEventListener eventCallback) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullPa...
java
public void listenBucketNotification(String bucketName, String prefix, String suffix, String[] events, BucketEventListener eventCallback) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullPa...
[ "public", "void", "listenBucketNotification", "(", "String", "bucketName", ",", "String", "prefix", ",", "String", "suffix", ",", "String", "[", "]", "events", ",", "BucketEventListener", "eventCallback", ")", "throws", "InvalidBucketNameException", ",", "NoSuchAlgori...
Listen to bucket notifications. @param bucketName Bucket name. @param prefix Prefix of concerned objects events. @param suffix Suffix of concerned objects events. @param events List of events to watch. @param eventCallback Event handler. @throws InvalidBucketNameException upon invalid bucket name is given @throws No...
[ "Listen", "to", "bucket", "notifications", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L4977-L5020
62,773
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.calculateMultipartSize
private static int[] calculateMultipartSize(long size) throws InvalidArgumentException { if (size > MAX_OBJECT_SIZE) { throw new InvalidArgumentException("size " + size + " is greater than allowed size 5TiB"); } double partSize = Math.ceil((double) size / MAX_MULTIPART_COUNT); partSize = Math...
java
private static int[] calculateMultipartSize(long size) throws InvalidArgumentException { if (size > MAX_OBJECT_SIZE) { throw new InvalidArgumentException("size " + size + " is greater than allowed size 5TiB"); } double partSize = Math.ceil((double) size / MAX_MULTIPART_COUNT); partSize = Math...
[ "private", "static", "int", "[", "]", "calculateMultipartSize", "(", "long", "size", ")", "throws", "InvalidArgumentException", "{", "if", "(", "size", ">", "MAX_OBJECT_SIZE", ")", "{", "throw", "new", "InvalidArgumentException", "(", "\"size \"", "+", "size", "...
Calculates multipart size of given size and returns three element array contains part size, part count and last part size.
[ "Calculates", "multipart", "size", "of", "given", "size", "and", "returns", "three", "element", "array", "contains", "part", "size", "part", "count", "and", "last", "part", "size", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L5027-L5044
62,774
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.getAvailableSize
private int getAvailableSize(Object inputStream, int expectedReadSize) throws IOException, InternalException { RandomAccessFile file = null; BufferedInputStream stream = null; if (inputStream instanceof RandomAccessFile) { file = (RandomAccessFile) inputStream; } else if (inputStream instanceof Bu...
java
private int getAvailableSize(Object inputStream, int expectedReadSize) throws IOException, InternalException { RandomAccessFile file = null; BufferedInputStream stream = null; if (inputStream instanceof RandomAccessFile) { file = (RandomAccessFile) inputStream; } else if (inputStream instanceof Bu...
[ "private", "int", "getAvailableSize", "(", "Object", "inputStream", ",", "int", "expectedReadSize", ")", "throws", "IOException", ",", "InternalException", "{", "RandomAccessFile", "file", "=", "null", ";", "BufferedInputStream", "stream", "=", "null", ";", "if", ...
Return available size of given input stream up to given expected read size. If less data is available than expected read size, it returns how much data available to read.
[ "Return", "available", "size", "of", "given", "input", "stream", "up", "to", "given", "expected", "read", "size", ".", "If", "less", "data", "is", "available", "than", "expected", "read", "size", "it", "returns", "how", "much", "data", "available", "to", "...
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L5050-L5102
62,775
minio/minio-java
api/src/main/java/io/minio/MinioClient.java
MinioClient.traceOn
public void traceOn(OutputStream traceStream) { if (traceStream == null) { throw new NullPointerException(); } else { this.traceStream = new PrintWriter(new OutputStreamWriter(traceStream, StandardCharsets.UTF_8), true); } }
java
public void traceOn(OutputStream traceStream) { if (traceStream == null) { throw new NullPointerException(); } else { this.traceStream = new PrintWriter(new OutputStreamWriter(traceStream, StandardCharsets.UTF_8), true); } }
[ "public", "void", "traceOn", "(", "OutputStream", "traceStream", ")", "{", "if", "(", "traceStream", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "else", "{", "this", ".", "traceStream", "=", "new", "PrintWriter", "("...
Enables HTTP call tracing and written to traceStream. @param traceStream {@link OutputStream} for writing HTTP call tracing. @see #traceOff
[ "Enables", "HTTP", "call", "tracing", "and", "written", "to", "traceStream", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/MinioClient.java#L5112-L5118
62,776
minio/minio-java
api/src/main/java/io/minio/http/HeaderParser.java
HeaderParser.set
public static void set(Headers headers, Object destination) { Field[] publicFields; Field[] privateFields; Field[] fields; Class<?> cls = destination.getClass(); publicFields = cls.getFields(); privateFields = cls.getDeclaredFields(); fields = new Field[publicFields.length + privateFields....
java
public static void set(Headers headers, Object destination) { Field[] publicFields; Field[] privateFields; Field[] fields; Class<?> cls = destination.getClass(); publicFields = cls.getFields(); privateFields = cls.getDeclaredFields(); fields = new Field[publicFields.length + privateFields....
[ "public", "static", "void", "set", "(", "Headers", "headers", ",", "Object", "destination", ")", "{", "Field", "[", "]", "publicFields", ";", "Field", "[", "]", "privateFields", ";", "Field", "[", "]", "fields", ";", "Class", "<", "?", ">", "cls", "=",...
Sets destination object from Headers object.
[ "Sets", "destination", "object", "from", "Headers", "object", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/http/HeaderParser.java#L42-L84
62,777
minio/minio-java
api/src/main/java/io/minio/S3Escaper.java
S3Escaper.encode
public static String encode(String str) { if (str == null) { return ""; } return ESCAPER.escape(str) .replaceAll("\\!", "%21") .replaceAll("\\$", "%24") .replaceAll("\\&", "%26") .replaceAll("\\'", "%27") .replaceAll("\\(", "%28") .replaceAll("\\)", "%29") .r...
java
public static String encode(String str) { if (str == null) { return ""; } return ESCAPER.escape(str) .replaceAll("\\!", "%21") .replaceAll("\\$", "%24") .replaceAll("\\&", "%26") .replaceAll("\\'", "%27") .replaceAll("\\(", "%28") .replaceAll("\\)", "%29") .r...
[ "public", "static", "String", "encode", "(", "String", "str", ")", "{", "if", "(", "str", "==", "null", ")", "{", "return", "\"\"", ";", "}", "return", "ESCAPER", ".", "escape", "(", "str", ")", ".", "replaceAll", "(", "\"\\\\!\"", ",", "\"%21\"", ")...
Returns S3 encoded string.
[ "Returns", "S3", "encoded", "string", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/S3Escaper.java#L29-L51
62,778
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.getChunkSignature
public static String getChunkSignature(String chunkSha256, DateTime date, String region, String secretKey, String prevSignature) throws NoSuchAlgorithmException, InvalidKeyException { Signer signer = new Signer(null, chunkSha256, date, region, null, secretKey, prevSignat...
java
public static String getChunkSignature(String chunkSha256, DateTime date, String region, String secretKey, String prevSignature) throws NoSuchAlgorithmException, InvalidKeyException { Signer signer = new Signer(null, chunkSha256, date, region, null, secretKey, prevSignat...
[ "public", "static", "String", "getChunkSignature", "(", "String", "chunkSha256", ",", "DateTime", "date", ",", "String", "region", ",", "String", "secretKey", ",", "String", "prevSignature", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", ...
Returns chunk signature calculated using given arguments.
[ "Returns", "chunk", "signature", "calculated", "using", "given", "arguments", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L241-L251
62,779
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.getChunkSeedSignature
public static String getChunkSeedSignature(Request request, String region, String secretKey) throws NoSuchAlgorithmException, InvalidKeyException { String contentSha256 = request.header("x-amz-content-sha256"); DateTime date = DateFormat.AMZ_DATE_FORMAT.parseDateTime(request.header("x-amz-date")); Sign...
java
public static String getChunkSeedSignature(Request request, String region, String secretKey) throws NoSuchAlgorithmException, InvalidKeyException { String contentSha256 = request.header("x-amz-content-sha256"); DateTime date = DateFormat.AMZ_DATE_FORMAT.parseDateTime(request.header("x-amz-date")); Sign...
[ "public", "static", "String", "getChunkSeedSignature", "(", "Request", "request", ",", "String", "region", ",", "String", "secretKey", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", "String", "contentSha256", "=", "request", ".", "header",...
Returns seed signature for given request.
[ "Returns", "seed", "signature", "for", "given", "request", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L257-L270
62,780
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.signV4
public static Request signV4(Request request, String region, String accessKey, String secretKey) throws NoSuchAlgorithmException, InvalidKeyException { String contentSha256 = request.header("x-amz-content-sha256"); DateTime date = DateFormat.AMZ_DATE_FORMAT.parseDateTime(request.header("x-amz-date")); ...
java
public static Request signV4(Request request, String region, String accessKey, String secretKey) throws NoSuchAlgorithmException, InvalidKeyException { String contentSha256 = request.header("x-amz-content-sha256"); DateTime date = DateFormat.AMZ_DATE_FORMAT.parseDateTime(request.header("x-amz-date")); ...
[ "public", "static", "Request", "signV4", "(", "Request", "request", ",", "String", "region", ",", "String", "accessKey", ",", "String", "secretKey", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", "String", "contentSha256", "=", "request"...
Returns signed request object for given request, region, access key and secret key.
[ "Returns", "signed", "request", "object", "for", "given", "request", "region", "access", "key", "and", "secret", "key", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L276-L290
62,781
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.presignV4
public static HttpUrl presignV4(Request request, String region, String accessKey, String secretKey, int expires) throws NoSuchAlgorithmException, InvalidKeyException { String contentSha256 = "UNSIGNED-PAYLOAD"; DateTime date = DateFormat.AMZ_DATE_FORMAT.parseDateTime(request.header("x-amz-date")); Sign...
java
public static HttpUrl presignV4(Request request, String region, String accessKey, String secretKey, int expires) throws NoSuchAlgorithmException, InvalidKeyException { String contentSha256 = "UNSIGNED-PAYLOAD"; DateTime date = DateFormat.AMZ_DATE_FORMAT.parseDateTime(request.header("x-amz-date")); Sign...
[ "public", "static", "HttpUrl", "presignV4", "(", "Request", "request", ",", "String", "region", ",", "String", "accessKey", ",", "String", "secretKey", ",", "int", "expires", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", "String", "co...
Returns pre-signed HttpUrl object for given request, region, access key, secret key and expires time.
[ "Returns", "pre", "-", "signed", "HttpUrl", "object", "for", "given", "request", "region", "access", "key", "secret", "key", "and", "expires", "time", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L328-L343
62,782
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.credential
public static String credential(String accessKey, DateTime date, String region) { return accessKey + "/" + date.toString(DateFormat.SIGNER_DATE_FORMAT) + "/" + region + "/s3/aws4_request"; }
java
public static String credential(String accessKey, DateTime date, String region) { return accessKey + "/" + date.toString(DateFormat.SIGNER_DATE_FORMAT) + "/" + region + "/s3/aws4_request"; }
[ "public", "static", "String", "credential", "(", "String", "accessKey", ",", "DateTime", "date", ",", "String", "region", ")", "{", "return", "accessKey", "+", "\"/\"", "+", "date", ".", "toString", "(", "DateFormat", ".", "SIGNER_DATE_FORMAT", ")", "+", "\"...
Returns credential string of given access key, date and region.
[ "Returns", "credential", "string", "of", "given", "access", "key", "date", "and", "region", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L349-L351
62,783
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.postPresignV4
public static String postPresignV4(String stringToSign, String secretKey, DateTime date, String region) throws NoSuchAlgorithmException, InvalidKeyException { Signer signer = new Signer(null, null, date, region, null, secretKey, null); signer.stringToSign = stringToSign; signer.setSigningKey(); sign...
java
public static String postPresignV4(String stringToSign, String secretKey, DateTime date, String region) throws NoSuchAlgorithmException, InvalidKeyException { Signer signer = new Signer(null, null, date, region, null, secretKey, null); signer.stringToSign = stringToSign; signer.setSigningKey(); sign...
[ "public", "static", "String", "postPresignV4", "(", "String", "stringToSign", ",", "String", "secretKey", ",", "DateTime", "date", ",", "String", "region", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", "Signer", "signer", "=", "new", ...
Returns pre-signed post policy string for given stringToSign, secret key, date and region.
[ "Returns", "pre", "-", "signed", "post", "policy", "string", "for", "given", "stringToSign", "secret", "key", "date", "and", "region", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L357-L365
62,784
minio/minio-java
api/src/main/java/io/minio/Signer.java
Signer.sumHmac
public static byte[] sumHmac(byte[] key, byte[] data) throws NoSuchAlgorithmException, InvalidKeyException { Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(key, "HmacSHA256")); mac.update(data); return mac.doFinal(); }
java
public static byte[] sumHmac(byte[] key, byte[] data) throws NoSuchAlgorithmException, InvalidKeyException { Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(key, "HmacSHA256")); mac.update(data); return mac.doFinal(); }
[ "public", "static", "byte", "[", "]", "sumHmac", "(", "byte", "[", "]", "key", ",", "byte", "[", "]", "data", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", "Mac", "mac", "=", "Mac", ".", "getInstance", "(", "\"HmacSHA256\"", "...
Returns HMacSHA256 digest of given key and data.
[ "Returns", "HMacSHA256", "digest", "of", "given", "key", "and", "data", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/Signer.java#L371-L379
62,785
minio/minio-java
api/src/main/java/io/minio/PostPolicy.java
PostPolicy.setContentType
public void setContentType(String contentType) throws InvalidArgumentException { if (Strings.isNullOrEmpty(contentType)) { throw new InvalidArgumentException("empty content type"); } this.contentType = contentType; }
java
public void setContentType(String contentType) throws InvalidArgumentException { if (Strings.isNullOrEmpty(contentType)) { throw new InvalidArgumentException("empty content type"); } this.contentType = contentType; }
[ "public", "void", "setContentType", "(", "String", "contentType", ")", "throws", "InvalidArgumentException", "{", "if", "(", "Strings", ".", "isNullOrEmpty", "(", "contentType", ")", ")", "{", "throw", "new", "InvalidArgumentException", "(", "\"empty content type\"", ...
Sets content type.
[ "Sets", "content", "type", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/PostPolicy.java#L86-L92
62,786
minio/minio-java
api/src/main/java/io/minio/PostPolicy.java
PostPolicy.setContentEncoding
public void setContentEncoding(String contentEncoding) throws InvalidArgumentException { if (Strings.isNullOrEmpty(contentEncoding)) { throw new InvalidArgumentException("empty content encoding"); } this.contentEncoding = contentEncoding; }
java
public void setContentEncoding(String contentEncoding) throws InvalidArgumentException { if (Strings.isNullOrEmpty(contentEncoding)) { throw new InvalidArgumentException("empty content encoding"); } this.contentEncoding = contentEncoding; }
[ "public", "void", "setContentEncoding", "(", "String", "contentEncoding", ")", "throws", "InvalidArgumentException", "{", "if", "(", "Strings", ".", "isNullOrEmpty", "(", "contentEncoding", ")", ")", "{", "throw", "new", "InvalidArgumentException", "(", "\"empty conte...
Sets content encoding.
[ "Sets", "content", "encoding", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/PostPolicy.java#L98-L104
62,787
minio/minio-java
api/src/main/java/io/minio/PostPolicy.java
PostPolicy.setContentRange
public void setContentRange(long startRange, long endRange) throws InvalidArgumentException { if (startRange <= 0 || endRange <= 0) { throw new InvalidArgumentException("negative start/end range"); } if (startRange > endRange) { throw new InvalidArgumentException("start range is higher than end...
java
public void setContentRange(long startRange, long endRange) throws InvalidArgumentException { if (startRange <= 0 || endRange <= 0) { throw new InvalidArgumentException("negative start/end range"); } if (startRange > endRange) { throw new InvalidArgumentException("start range is higher than end...
[ "public", "void", "setContentRange", "(", "long", "startRange", ",", "long", "endRange", ")", "throws", "InvalidArgumentException", "{", "if", "(", "startRange", "<=", "0", "||", "endRange", "<=", "0", ")", "{", "throw", "new", "InvalidArgumentException", "(", ...
Sets content range.
[ "Sets", "content", "range", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/PostPolicy.java#L122-L133
62,788
minio/minio-java
api/src/main/java/io/minio/PostPolicy.java
PostPolicy.formData
public Map<String,String> formData(String accessKey, String secretKey, String region) throws NoSuchAlgorithmException, InvalidKeyException, InvalidArgumentException { if (Strings.isNullOrEmpty(region)) { throw new InvalidArgumentException("empty region"); } return makeFormData(accessKey, secre...
java
public Map<String,String> formData(String accessKey, String secretKey, String region) throws NoSuchAlgorithmException, InvalidKeyException, InvalidArgumentException { if (Strings.isNullOrEmpty(region)) { throw new InvalidArgumentException("empty region"); } return makeFormData(accessKey, secre...
[ "public", "Map", "<", "String", ",", "String", ">", "formData", "(", "String", "accessKey", ",", "String", "secretKey", ",", "String", "region", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", ",", "InvalidArgumentException", "{", "if", "(",...
Returns form data of this post policy setting the provided region.
[ "Returns", "form", "data", "of", "this", "post", "policy", "setting", "the", "provided", "region", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/PostPolicy.java#L177-L185
62,789
minio/minio-java
api/src/main/java/io/minio/CopyConditions.java
CopyConditions.setModified
public void setModified(DateTime date) throws InvalidArgumentException { if (date == null) { throw new InvalidArgumentException("Date cannot be empty"); } copyConditions.put("x-amz-copy-source-if-modified-since", date.toString(DateFormat.HTTP_HEADER_DATE_FORMAT)); }
java
public void setModified(DateTime date) throws InvalidArgumentException { if (date == null) { throw new InvalidArgumentException("Date cannot be empty"); } copyConditions.put("x-amz-copy-source-if-modified-since", date.toString(DateFormat.HTTP_HEADER_DATE_FORMAT)); }
[ "public", "void", "setModified", "(", "DateTime", "date", ")", "throws", "InvalidArgumentException", "{", "if", "(", "date", "==", "null", ")", "{", "throw", "new", "InvalidArgumentException", "(", "\"Date cannot be empty\"", ")", ";", "}", "copyConditions", ".", ...
Set modified condition, copy object modified since given time. @throws InvalidArgumentException When date is null
[ "Set", "modified", "condition", "copy", "object", "modified", "since", "given", "time", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/CopyConditions.java#L45-L50
62,790
minio/minio-java
api/src/main/java/io/minio/CopyConditions.java
CopyConditions.setMatchETag
public void setMatchETag(String etag) throws InvalidArgumentException { if (etag == null) { throw new InvalidArgumentException("ETag cannot be empty"); } copyConditions.put("x-amz-copy-source-if-match", etag); }
java
public void setMatchETag(String etag) throws InvalidArgumentException { if (etag == null) { throw new InvalidArgumentException("ETag cannot be empty"); } copyConditions.put("x-amz-copy-source-if-match", etag); }
[ "public", "void", "setMatchETag", "(", "String", "etag", ")", "throws", "InvalidArgumentException", "{", "if", "(", "etag", "==", "null", ")", "{", "throw", "new", "InvalidArgumentException", "(", "\"ETag cannot be empty\"", ")", ";", "}", "copyConditions", ".", ...
Set matching ETag condition, copy object which matches the following ETag. @throws InvalidArgumentException When etag is null
[ "Set", "matching", "ETag", "condition", "copy", "object", "which", "matches", "the", "following", "ETag", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/CopyConditions.java#L73-L78
62,791
minio/minio-java
api/src/main/java/io/minio/CopyConditions.java
CopyConditions.setMatchETagNone
public void setMatchETagNone(String etag) throws InvalidArgumentException { if (etag == null) { throw new InvalidArgumentException("ETag cannot be empty"); } copyConditions.put("x-amz-copy-source-if-none-match", etag); }
java
public void setMatchETagNone(String etag) throws InvalidArgumentException { if (etag == null) { throw new InvalidArgumentException("ETag cannot be empty"); } copyConditions.put("x-amz-copy-source-if-none-match", etag); }
[ "public", "void", "setMatchETagNone", "(", "String", "etag", ")", "throws", "InvalidArgumentException", "{", "if", "(", "etag", "==", "null", ")", "{", "throw", "new", "InvalidArgumentException", "(", "\"ETag cannot be empty\"", ")", ";", "}", "copyConditions", "....
Set matching ETag none condition, copy object which does not match the following ETag. @throws InvalidArgumentException When etag is null
[ "Set", "matching", "ETag", "none", "condition", "copy", "object", "which", "does", "not", "match", "the", "following", "ETag", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/CopyConditions.java#L87-L92
62,792
minio/minio-java
api/src/main/java/io/minio/messages/XmlEntity.java
XmlEntity.parseXml
public void parseXml(Reader reader) throws IOException, XmlPullParserException { this.xmlPullParser.setInput(reader); Xml.parseElement(this.xmlPullParser, this, this.defaultNamespaceDictionary, null); }
java
public void parseXml(Reader reader) throws IOException, XmlPullParserException { this.xmlPullParser.setInput(reader); Xml.parseElement(this.xmlPullParser, this, this.defaultNamespaceDictionary, null); }
[ "public", "void", "parseXml", "(", "Reader", "reader", ")", "throws", "IOException", ",", "XmlPullParserException", "{", "this", ".", "xmlPullParser", ".", "setInput", "(", "reader", ")", ";", "Xml", ".", "parseElement", "(", "this", ".", "xmlPullParser", ",",...
Parses content from given reader input stream.
[ "Parses", "content", "from", "given", "reader", "input", "stream", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/messages/XmlEntity.java#L63-L66
62,793
minio/minio-java
api/src/main/java/io/minio/messages/XmlEntity.java
XmlEntity.parseXml
protected void parseXml(Reader reader, XmlNamespaceDictionary namespaceDictionary) throws IOException, XmlPullParserException { this.xmlPullParser.setInput(reader); Xml.parseElement(this.xmlPullParser, this, namespaceDictionary, null); }
java
protected void parseXml(Reader reader, XmlNamespaceDictionary namespaceDictionary) throws IOException, XmlPullParserException { this.xmlPullParser.setInput(reader); Xml.parseElement(this.xmlPullParser, this, namespaceDictionary, null); }
[ "protected", "void", "parseXml", "(", "Reader", "reader", ",", "XmlNamespaceDictionary", "namespaceDictionary", ")", "throws", "IOException", ",", "XmlPullParserException", "{", "this", ".", "xmlPullParser", ".", "setInput", "(", "reader", ")", ";", "Xml", ".", "p...
Parses content from given reader input stream and namespace dictionary.
[ "Parses", "content", "from", "given", "reader", "input", "stream", "and", "namespace", "dictionary", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/messages/XmlEntity.java#L72-L76
62,794
minio/minio-java
api/src/main/java/io/minio/ChunkedInputStream.java
ChunkedInputStream.read
public int read() throws IOException { if (this.bytesRead == this.length) { // All chunks and final additional chunk are read. // This means we have reached EOF. return -1; } try { // Read a chunk from given input stream when // it is first chunk or all bytes in chunk body is ...
java
public int read() throws IOException { if (this.bytesRead == this.length) { // All chunks and final additional chunk are read. // This means we have reached EOF. return -1; } try { // Read a chunk from given input stream when // it is first chunk or all bytes in chunk body is ...
[ "public", "int", "read", "(", ")", "throws", "IOException", "{", "if", "(", "this", ".", "bytesRead", "==", "this", ".", "length", ")", "{", "// All chunks and final additional chunk are read.", "// This means we have reached EOF.", "return", "-", "1", ";", "}", "...
read single byte from chunk body.
[ "read", "single", "byte", "from", "chunk", "body", "." ]
b2028f56403c89ce2d5900ae813bc1314c87bc7f
https://github.com/minio/minio-java/blob/b2028f56403c89ce2d5900ae813bc1314c87bc7f/api/src/main/java/io/minio/ChunkedInputStream.java#L164-L203
62,795
pwittchen/ReactiveNetwork
library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/internet/observing/strategy/SocketInternetObservingStrategy.java
SocketInternetObservingStrategy.adjustHost
protected String adjustHost(final String host) { if (host.startsWith(HTTP_PROTOCOL)) { return host.replace(HTTP_PROTOCOL, EMPTY_STRING); } else if (host.startsWith(HTTPS_PROTOCOL)) { return host.replace(HTTPS_PROTOCOL, EMPTY_STRING); } return host; }
java
protected String adjustHost(final String host) { if (host.startsWith(HTTP_PROTOCOL)) { return host.replace(HTTP_PROTOCOL, EMPTY_STRING); } else if (host.startsWith(HTTPS_PROTOCOL)) { return host.replace(HTTPS_PROTOCOL, EMPTY_STRING); } return host; }
[ "protected", "String", "adjustHost", "(", "final", "String", "host", ")", "{", "if", "(", "host", ".", "startsWith", "(", "HTTP_PROTOCOL", ")", ")", "{", "return", "host", ".", "replace", "(", "HTTP_PROTOCOL", ",", "EMPTY_STRING", ")", ";", "}", "else", ...
adjusts host to needs of SocketInternetObservingStrategy @return transformed host
[ "adjusts", "host", "to", "needs", "of", "SocketInternetObservingStrategy" ]
cfeb3b79a1e44d106581af5e6709ff206e60c369
https://github.com/pwittchen/ReactiveNetwork/blob/cfeb3b79a1e44d106581af5e6709ff206e60c369/library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/internet/observing/strategy/SocketInternetObservingStrategy.java#L81-L88
62,796
pwittchen/ReactiveNetwork
library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/Preconditions.java
Preconditions.checkNotNullOrEmpty
public static void checkNotNullOrEmpty(String string, String message) { if (string == null || string.isEmpty()) { throw new IllegalArgumentException(message); } }
java
public static void checkNotNullOrEmpty(String string, String message) { if (string == null || string.isEmpty()) { throw new IllegalArgumentException(message); } }
[ "public", "static", "void", "checkNotNullOrEmpty", "(", "String", "string", ",", "String", "message", ")", "{", "if", "(", "string", "==", "null", "||", "string", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "message",...
Validation method, which checks if a string is null or empty @param string to verify @param message to be thrown in exception
[ "Validation", "method", "which", "checks", "if", "a", "string", "is", "null", "or", "empty" ]
cfeb3b79a1e44d106581af5e6709ff206e60c369
https://github.com/pwittchen/ReactiveNetwork/blob/cfeb3b79a1e44d106581af5e6709ff206e60c369/library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/Preconditions.java#L39-L43
62,797
pwittchen/ReactiveNetwork
library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ReactiveNetwork.java
ReactiveNetwork.observeNetworkConnectivity
@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE) public static Observable<Connectivity> observeNetworkConnectivity(final Context context) { final NetworkObservingStrategy strategy; if (Preconditions.isAtLeastAndroidMarshmallow()) { strategy = new MarshmallowNetworkObservingStrategy(); ...
java
@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE) public static Observable<Connectivity> observeNetworkConnectivity(final Context context) { final NetworkObservingStrategy strategy; if (Preconditions.isAtLeastAndroidMarshmallow()) { strategy = new MarshmallowNetworkObservingStrategy(); ...
[ "@", "RequiresPermission", "(", "Manifest", ".", "permission", ".", "ACCESS_NETWORK_STATE", ")", "public", "static", "Observable", "<", "Connectivity", ">", "observeNetworkConnectivity", "(", "final", "Context", "context", ")", "{", "final", "NetworkObservingStrategy", ...
Observes network connectivity. Information about network state, type and typeName are contained in observed Connectivity object. @param context Context of the activity or an application @return RxJava Observable with Connectivity class containing information about network state, type and typeName
[ "Observes", "network", "connectivity", ".", "Information", "about", "network", "state", "type", "and", "typeName", "are", "contained", "in", "observed", "Connectivity", "object", "." ]
cfeb3b79a1e44d106581af5e6709ff206e60c369
https://github.com/pwittchen/ReactiveNetwork/blob/cfeb3b79a1e44d106581af5e6709ff206e60c369/library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ReactiveNetwork.java#L60-L73
62,798
pwittchen/ReactiveNetwork
library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ReactiveNetwork.java
ReactiveNetwork.observeNetworkConnectivity
@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE) public static Observable<Connectivity> observeNetworkConnectivity(final Context context, final NetworkObservingStrategy strategy) { Preconditions.checkNotNull(context, "context == null"); Preconditions.checkNotNull(strategy, "strategy == null...
java
@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE) public static Observable<Connectivity> observeNetworkConnectivity(final Context context, final NetworkObservingStrategy strategy) { Preconditions.checkNotNull(context, "context == null"); Preconditions.checkNotNull(strategy, "strategy == null...
[ "@", "RequiresPermission", "(", "Manifest", ".", "permission", ".", "ACCESS_NETWORK_STATE", ")", "public", "static", "Observable", "<", "Connectivity", ">", "observeNetworkConnectivity", "(", "final", "Context", "context", ",", "final", "NetworkObservingStrategy", "stra...
Observes network connectivity. Information about network state, type and typeName are contained in observed Connectivity object. Moreover, allows you to define NetworkObservingStrategy. @param context Context of the activity or an application @param strategy NetworkObserving strategy to be applied - you can use one of...
[ "Observes", "network", "connectivity", ".", "Information", "about", "network", "state", "type", "and", "typeName", "are", "contained", "in", "observed", "Connectivity", "object", ".", "Moreover", "allows", "you", "to", "define", "NetworkObservingStrategy", "." ]
cfeb3b79a1e44d106581af5e6709ff206e60c369
https://github.com/pwittchen/ReactiveNetwork/blob/cfeb3b79a1e44d106581af5e6709ff206e60c369/library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ReactiveNetwork.java#L86-L92
62,799
pwittchen/ReactiveNetwork
library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ReactiveNetwork.java
ReactiveNetwork.observeInternetConnectivity
@RequiresPermission(Manifest.permission.INTERNET) protected static Observable<Boolean> observeInternetConnectivity( final InternetObservingStrategy strategy, final int initialIntervalInMs, final int intervalInMs, final String host, final int port, final int timeoutInMs, final int httpResponse, final...
java
@RequiresPermission(Manifest.permission.INTERNET) protected static Observable<Boolean> observeInternetConnectivity( final InternetObservingStrategy strategy, final int initialIntervalInMs, final int intervalInMs, final String host, final int port, final int timeoutInMs, final int httpResponse, final...
[ "@", "RequiresPermission", "(", "Manifest", ".", "permission", ".", "INTERNET", ")", "protected", "static", "Observable", "<", "Boolean", ">", "observeInternetConnectivity", "(", "final", "InternetObservingStrategy", "strategy", ",", "final", "int", "initialIntervalInMs...
Observes connectivity with the Internet in a given time interval. @param strategy for observing Internet connectivity @param initialIntervalInMs in milliseconds determining the delay of the first connectivity check @param intervalInMs in milliseconds determining how often we want to check connectivity @param host for ...
[ "Observes", "connectivity", "with", "the", "Internet", "in", "a", "given", "time", "interval", "." ]
cfeb3b79a1e44d106581af5e6709ff206e60c369
https://github.com/pwittchen/ReactiveNetwork/blob/cfeb3b79a1e44d106581af5e6709ff206e60c369/library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ReactiveNetwork.java#L142-L150