Package com.microsoft.playwright.impl
Class Utils
java.lang.Object
com.microsoft.playwright.impl.Utils
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddLargeFileUploadParams(Path[] files, com.google.gson.JsonObject params, BrowserContextImpl context) (package private) static voidcheckFilePayloadSize(FilePayload[] files) (package private) static <T> Tclone(T f) (package private) static <F,T> T convertType(F f, Class<T> t) (package private) static String(package private) static intfromJsRegexFlags(String regexFlags) (package private) static StringglobToRegex(String glob) (package private) static booleanhasLargeFile(Path[] files) (package private) static booleanisSafeCloseError(PlaywrightException exception) (package private) static booleanisSafeCloseError(String error) (package private) static String(package private) static voidmkParentDirs(Path file) (package private) static FilePayloadtoFilePayload(Path file) (package private) static FilePayload[]toFilePayloads(Path[] files) (package private) static List<HttpHeader> toHeadersList(Map<String, String> headers) toHeadersMap(List<HttpHeader> headers) (package private) static StringtoJsRegexFlags(Pattern pattern) (package private) static voidwriteToFile(byte[] buffer, Path path) (package private) static voidwriteToFile(InputStream inputStream, Path path)
-
Field Details
-
escapeGlobChars
-
maxUploadBufferSize
static final long maxUploadBufferSize- See Also:
-
-
Constructor Details
-
Utils
Utils()
-
-
Method Details
-
convertType
-
clone
static <T> T clone(T f) -
globToRegex
-
mimeType
-
hasLargeFile
-
addLargeFileUploadParams
static void addLargeFileUploadParams(Path[] files, com.google.gson.JsonObject params, BrowserContextImpl context) -
checkFilePayloadSize
-
toFilePayloads
-
toFilePayload
-
mkParentDirs
-
writeToFile
-
writeToFile
-
isSafeCloseError
-
isSafeCloseError
-
createGuid
-
toHeadersMap
-
toHeadersList
-
toJsRegexFlags
-
fromJsRegexFlags
-