Commit 2b09cdaa authored by Him188's avatar Him188

Add JDK bindings

parent 6e7c2085
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class BufferedInputStream : FilterInputStream {
public constructor(`in`: InputStream)
public constructor(`in`: InputStream, size: Int)
public open fun read(): Int
public open fun read(b: ByteArray, off: Int, len: Int): Int
public open fun skip(n: Long): Long
public open fun available(): Int
public open fun mark(readlimit: Int)
public open fun reset()
public open fun markSupported(): Boolean
public open fun close()
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class BufferedOutputStream : FilterOutputStream {
public constructor(out: OutputStream)
public constructor(out: OutputStream, size: Int)
public open fun write(b: Int)
public open fun write(b: ByteArray, off: Int, len: Int)
public open fun flush()
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class ByteArrayInputStream : InputStream {
public constructor(buf: ByteArray)
public constructor(buf: ByteArray, offset: Int, length: Int)
public open fun read(): Int
public open fun read(b: ByteArray, off: Int, len: Int): Int
public open fun readAllBytes(): ByteArray
public open fun readNBytes(b: ByteArray, off: Int, len: Int): Int
public open fun transferTo(out: OutputStream): Long
public open fun skip(n: Long): Long
public open fun available(): Int
public open fun markSupported(): Boolean
public open fun mark(readAheadLimit: Int)
public open fun reset()
public open fun close()
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress("unused", "NO_ACTUAL_FOR_EXPECT", "PackageDirectoryMismatch")
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect class ByteArrayOutputStream() : OutputStream {
public constructor(size: Int)
public override fun write(oneByte: Int)
public fun toByteArray(): ByteArray
public fun size(): Int
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress("unused", "NO_ACTUAL_FOR_EXPECT", "PackageDirectoryMismatch")
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
import kotlinx.io.core.Closeable
import kotlinx.io.errors.IOException
/**
* A [Closeable] is a source or destination of data that can be closed.
* The close method is invoked to release resources that the object is
* holding (such as open files).
*
* @since 1.5
*/
public expect interface Closeable /* : AutoCloseable */ {
/**
* Closes this stream and releases any system resources associated
* with it. If the stream is already closed then invoking this
* method has no effect.
*
*
* As noted in [AutoCloseable.close], cases where the
* close may fail require careful attention. It is strongly advised
* to relinquish the underlying resources and to internally
* *mark* the `Closeable` as closed, prior to throwing
* the `IOException`.
*
* @throws IOException if an I/O error occurs
*/
@Throws(IOException::class)
public fun close()
}
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open interface DataInput {
public open fun readFully(b: ByteArray)
public open fun readFully(b: ByteArray, off: Int, len: Int)
public open fun skipBytes(n: Int): Int
public open fun readBoolean(): Boolean
public open fun readByte(): Byte
public open fun readUnsignedByte(): Int
public open fun readShort(): Short
public open fun readUnsignedShort(): Int
public open fun readChar(): Char
public open fun readInt(): Int
public open fun readLong(): Long
public open fun readFloat(): Float
public open fun readDouble(): Double
public open fun readLine(): String
public open fun readUTF(): String
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open interface DataOutput {
public open fun write(b: Int)
public open fun write(b: ByteArray)
public open fun write(b: ByteArray, off: Int, len: Int)
public open fun writeBoolean(v: Boolean)
public open fun writeByte(v: Int)
public open fun writeShort(v: Int)
public open fun writeChar(v: Int)
public open fun writeInt(v: Int)
public open fun writeLong(v: Long)
public open fun writeFloat(v: Float)
public open fun writeDouble(v: Double)
public open fun writeBytes(s: String)
public open fun writeChars(s: String)
public open fun writeUTF(s: String)
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class EOFException : IOException {
public constructor()
public constructor(s: String)
}
\ No newline at end of file
/*
*
* * Copyright 2020 Mamoe Technologies and contributors.
* *
* * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
* *
* * https://github.com/mamoe/mirai/blob/master/LICENSE
*
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
import kotlin.jvm.JvmStatic
public expect class File : Serializable, Comparable<File> {
public constructor(parent: String, child: String)
public constructor(parent: File, child: String)
public constructor(uri: java.net.URI)
public open fun getName(): String
public open fun getParent(): String
public open fun getParentFile(): File
public open fun getPath(): String
public open fun isAbsolute(): Boolean
public open fun getAbsolutePath(): String
public open fun getAbsoluteFile(): File
public open fun getCanonicalPath(): String
public open fun getCanonicalFile(): File
public open fun toURL(): java.net.URL
public open fun toURI(): java.net.URI
public open fun canRead(): Boolean
public open fun canWrite(): Boolean
public open fun exists(): Boolean
public open fun isDirectory(): Boolean
public open fun isFile(): Boolean
public open fun isHidden(): Boolean
public open fun lastModified(): Long
public open fun length(): Long
public open fun createNewFile(): Boolean
public open fun delete(): Boolean
public open fun deleteOnExit()
public open fun list(): Array<String>?
//public open fun list(filter: FilenameFilter): Array<String>
public open fun listFiles(): Array<File>?
//public open fun listFiles(filter: FilenameFilter): Array<File>
//public open fun listFiles(filter: FileFilter): Array<File>
public open fun mkdir(): Boolean
public open fun mkdirs(): Boolean
public open fun renameTo(dest: File): Boolean
public open fun setLastModified(time: Long): Boolean
public open fun setReadOnly(): Boolean
public open fun setWritable(writable: Boolean, ownerOnly: Boolean): Boolean
public open fun setWritable(writable: Boolean): Boolean
public open fun setReadable(readable: Boolean, ownerOnly: Boolean): Boolean
public open fun setReadable(readable: Boolean): Boolean
public open fun setExecutable(executable: Boolean, ownerOnly: Boolean): Boolean
public open fun setExecutable(executable: Boolean): Boolean
public open fun canExecute(): Boolean
public open fun getTotalSpace(): Long
public open fun getFreeSpace(): Long
public open fun getUsableSpace(): Long
public open fun compareTo(pathname: File): Int
public open fun equals(obj: Any?): Boolean
public open fun hashCode(): Int
public open fun toString(): String
public open fun toPath(): java.nio.file.Path
public companion object {
@JvmStatic
public val separatorChar: Char
@JvmStatic
public val separator: String
@JvmStatic
public val pathSeparatorChar: Char
@JvmStatic
public val pathSeparator: String
@JvmStatic
public fun createTempFile(prefix: String, suffix: String): File
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
import kotlin.jvm.JvmStatic
public expect final class FileDescriptor {
public constructor()
public open fun set(fdo: FileDescriptor, fd: Int)
public open fun get(fdo: FileDescriptor): Int
public open fun setAppend(fdo: FileDescriptor, append: Boolean)
public open fun getAppend(fdo: FileDescriptor): Boolean
public open fun close(fdo: FileDescriptor)
public open fun registerCleanup(fdo: FileDescriptor)
public open fun unregisterCleanup(fdo: FileDescriptor)
public open fun setHandle(fdo: FileDescriptor, handle: Long)
public open fun getHandle(fdo: FileDescriptor): Long
public open fun valid(): Boolean
public open fun sync()
public companion object {
@JvmStatic
public val `in`: FileDescriptor
@JvmStatic
public val out: FileDescriptor
@JvmStatic
public val err: FileDescriptor
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class FileInputStream : InputStream {
public constructor(name: String)
public constructor(file: File)
public constructor(fdObj: FileDescriptor)
public open fun read(): Int
public open fun read(b: ByteArray): Int
public open fun read(b: ByteArray, off: Int, len: Int): Int
public open fun skip(n: Long): Long
public open fun available(): Int
public open fun close()
public final fun getFD(): FileDescriptor
//public open fun getChannel(): java.nio.channels.FileChannel
protected open fun finalize()
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class FileOutputStream : OutputStream {
public constructor(name: String)
public constructor(name: String, append: Boolean)
public constructor(file: File)
public constructor(file: File, append: Boolean)
public constructor(fdObj: FileDescriptor)
public open fun write(b: Int)
public open fun write(b: ByteArray)
public open fun write(b: ByteArray, off: Int, len: Int)
public open fun close()
public final fun getFD(): FileDescriptor
//public open fun getChannel(): java.nio.channels.FileChannel
protected final fun finalize()
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class FilterInputStream : InputStream {
public open fun read(): Int
public open fun read(b: ByteArray): Int
public open fun read(b: ByteArray, off: Int, len: Int): Int
public open fun skip(n: Long): Long
public open fun available(): Int
public open fun close()
public open fun mark(readlimit: Int)
public open fun reset()
public open fun markSupported(): Boolean
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class FilterOutputStream : OutputStream {
public open fun write(b: Int)
public open fun write(b: ByteArray)
public open fun write(b: ByteArray, off: Int, len: Int)
public open fun flush()
public open fun close()
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open class IOException : Exception {
public constructor()
public constructor(message: String)
public constructor(message: String, cause: Throwable)
public constructor(cause: Throwable)
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
import kotlin.jvm.JvmStatic
public expect abstract class InputStream : Closeable {
public open fun available(): Int
public open fun read(): Int
public open fun read(b: ByteArray, off: Int, len: Int): Int
public open fun readAllBytes(): ByteArray
public open fun readNBytes(b: ByteArray, off: Int, len: Int): Int
public open fun readNBytes(len: Int): ByteArray
public open fun skip(n: Long): Long
public open fun close()
public open fun read(b: ByteArray): Int
public open fun mark(readlimit: Int)
public open fun reset()
public open fun markSupported(): Boolean
//public open fun transferTo(out: OutputStream): Long
public companion object {
@JvmStatic
public open fun nullInputStream(): InputStream
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect open interface ObjectInput : DataInput /*, AutoCloseable*/ {
public open fun readObject(): Any?
public open fun read(): Int
public open fun read(b: ByteArray): Int
public open fun read(b: ByteArray, off: Int, len: Int): Int
public open fun skip(n: Long): Long
public open fun available(): Int
public open fun close()
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress("unused", "NO_ACTUAL_FOR_EXPECT", "PackageDirectoryMismatch")
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
import kotlinx.io.core.Closeable
public expect abstract class OutputStream : Closeable {
public override fun close()
public open fun flush()
public open fun write(buffer: ByteArray, offset: Int, count: Int)
public open fun write(buffer: ByteArray)
public abstract fun write(oneByte: Int)
}
/*
*
* * Copyright 2020 Mamoe Technologies and contributors.
* *
* * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
* *
* * https://github.com/mamoe/mirai/blob/master/LICENSE
*
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.io
public expect interface Serializable
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
public expect open class Inet4Address : InetAddress {
public open fun isMulticastAddress(): Boolean
public open fun isAnyLocalAddress(): Boolean
public open fun isLoopbackAddress(): Boolean
public open fun isLinkLocalAddress(): Boolean
public open fun isSiteLocalAddress(): Boolean
public open fun isMCGlobal(): Boolean
public open fun isMCNodeLocal(): Boolean
public open fun isMCLinkLocal(): Boolean
public open fun isMCSiteLocal(): Boolean
public open fun isMCOrgLocal(): Boolean
public open fun getAddress(): ByteArray
public open fun getHostAddress(): String
public open fun hashCode(): Int
public open fun equals(obj: Any?): Boolean
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
public expect open class Inet6Address : InetAddress {
public open fun isMulticastAddress(): Boolean
public open fun isAnyLocalAddress(): Boolean
public open fun isLoopbackAddress(): Boolean
public open fun isLinkLocalAddress(): Boolean
public open fun isSiteLocalAddress(): Boolean
public open fun isMCGlobal(): Boolean
public open fun isMCNodeLocal(): Boolean
public open fun isMCLinkLocal(): Boolean
public open fun isMCSiteLocal(): Boolean
public open fun isMCOrgLocal(): Boolean
public open fun getAddress(): ByteArray
public open fun getScopeId(): Int
//public open fun getScopedInterface(): NetworkInterface
public open fun getHostAddress(): String
public open fun hashCode(): Int
public open fun equals(obj: Any?): Boolean
public open fun isIPv4CompatibleAddress(): Boolean
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import kotlin.jvm.JvmStatic
public expect open class InetAddress : java.io.Serializable {
public constructor(hostsFileName: String)
public open fun run(): Nothing?
public open fun getOriginalHostName(ia: InetAddress): String
public open fun isMulticastAddress(): Boolean
public open fun isAnyLocalAddress(): Boolean
public open fun isLoopbackAddress(): Boolean
public open fun isLinkLocalAddress(): Boolean
public open fun isSiteLocalAddress(): Boolean
public open fun isMCGlobal(): Boolean
public open fun isMCNodeLocal(): Boolean
public open fun isMCLinkLocal(): Boolean
public open fun isMCSiteLocal(): Boolean
public open fun isMCOrgLocal(): Boolean
public open fun isReachable(timeout: Int): Boolean
public open fun getHostName(): String
public open fun getCanonicalHostName(): String
public open fun getAddress(): ByteArray
public open fun getHostAddress(): String
public open fun hashCode(): Int
public open fun equals(obj: Any?): Boolean
public open fun toString(): String
public open fun get(): Array<InetAddress>
//public open fun compareTo(other: CachedAddresses): Int
public open fun getHostByAddr(addr: ByteArray): String
public open fun lookupAllHostAddr(host: String): Array<InetAddress>
public companion object {
@JvmStatic
public open fun getByAddress(host: String, addr: ByteArray): InetAddress
@JvmStatic
public open fun getByName(host: String): InetAddress
@JvmStatic
public open fun getAllByName(host: String): Array<InetAddress>
@JvmStatic
public open fun getLoopbackAddress(): InetAddress
@JvmStatic
public open fun getByAddress(addr: ByteArray): InetAddress
@JvmStatic
public open fun getLocalHost(): InetAddress
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import kotlin.jvm.JvmStatic
public expect open class InetSocketAddress : SocketAddress {
public constructor(port: Int)
public constructor(addr: InetAddress, port: Int)
public constructor(hostname: String, port: Int)
public final fun getPort(): Int
public final fun getAddress(): InetAddress
public final fun getHostName(): String
public final fun getHostString(): String
public final fun isUnresolved(): Boolean
public open fun toString(): String
public final fun equals(obj: Any?): Boolean
public final fun hashCode(): Int
public companion object {
@JvmStatic
public open fun createUnresolved(host: String, port: Int): InetSocketAddress
}
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import kotlin.jvm.JvmStatic
public expect open class Proxy {
public open fun address(): SocketAddress
public open fun toString(): String
public final fun equals(obj: Any?): Boolean
public final fun hashCode(): Int
public companion object {
@JvmStatic
public val NO_PROXY: Proxy
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
public expect open class Socket : java.io.Closeable {
public constructor()
public constructor(proxy: Proxy)
public constructor(host: String, port: Int)
public constructor(address: InetAddress, port: Int)
public constructor(host: String, port: Int, stream: Boolean)
public constructor(host: InetAddress, port: Int, stream: Boolean)
public open fun connect(endpoint: SocketAddress)
public open fun connect(endpoint: SocketAddress, timeout: Int)
public open fun bind(bindpoint: SocketAddress)
public open fun getInetAddress(): InetAddress
public open fun getLocalAddress(): InetAddress
public open fun getPort(): Int
public open fun getLocalPort(): Int
public open fun getRemoteSocketAddress(): SocketAddress
public open fun getLocalSocketAddress(): SocketAddress
// public open fun getChannel(): java.nio.channels.SocketChannel
public open fun getInputStream(): java.io.InputStream
public open fun getOutputStream(): java.io.OutputStream
public open fun setTcpNoDelay(on: Boolean)
public open fun getTcpNoDelay(): Boolean
public open fun setSoLinger(on: Boolean, linger: Int)
public open fun getSoLinger(): Int
public open fun sendUrgentData(data: Int)
public open fun setOOBInline(on: Boolean)
public open fun getOOBInline(): Boolean
public open fun setSoTimeout(timeout: Int)
public open fun getSoTimeout(): Int
public open fun setSendBufferSize(size: Int)
public open fun getSendBufferSize(): Int
public open fun setReceiveBufferSize(size: Int)
public open fun getReceiveBufferSize(): Int
public open fun setKeepAlive(on: Boolean)
public open fun getKeepAlive(): Boolean
public open fun setTrafficClass(tc: Int)
public open fun getTrafficClass(): Int
public open fun setReuseAddress(on: Boolean)
public open fun getReuseAddress(): Boolean
public open fun close()
public open fun shutdownInput()
public open fun shutdownOutput()
public open fun toString(): String
public open fun isConnected(): Boolean
public open fun isBound(): Boolean
public open fun isClosed(): Boolean
public open fun isInputShutdown(): Boolean
public open fun isOutputShutdown(): Boolean
public open fun <T> setOption(name: SocketOption<T>, value: T): Socket
public open fun <T> getOption(name: SocketOption<T>): T
public open fun supportedOptions(): Set<SocketOption<*>>
public companion object {
// @JvmStatic public open fun setSocketImplFactory(fac: SocketImplFactory)
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
public expect abstract class SocketAddress : java.io.Serializable
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import java.io.IOException
public expect open class SocketException : IOException {
public constructor(msg: String)
public constructor()
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
public expect open interface SocketOption<T> {
public open fun name(): String
// public open fun type(): Class<T>
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT",
"ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
public expect open interface SocketOptions {
public open fun setOption(optID: Int, value: Any?)
public open fun getOption(optID: Int): Any?
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import java.io.Serializable
import kotlin.jvm.JvmStatic
public expect class URI : Comparable<URI>, Serializable {
public constructor(str: String)
public constructor(scheme: String, host: String, path: String, fragment: String)
public constructor(scheme: String, ssp: String, fragment: String)
public open fun parseServerAuthority(): URI
public open fun normalize(): URI
public open fun resolve(uri: URI): URI
public open fun resolve(str: String): URI
public open fun relativize(uri: URI): URI
public open fun toURL(): URL
public open fun getScheme(): String
public open fun isAbsolute(): Boolean
public open fun isOpaque(): Boolean
public open fun getRawSchemeSpecificPart(): String
public open fun getSchemeSpecificPart(): String
public open fun getRawAuthority(): String
public open fun getAuthority(): String
public open fun getRawUserInfo(): String
public open fun getUserInfo(): String
public open fun getHost(): String
public open fun getPort(): Int
public open fun getRawPath(): String
public open fun getPath(): String
public open fun getRawQuery(): String
public open fun getQuery(): String
public open fun getRawFragment(): String
public open fun getFragment(): String
public open fun equals(ob: Any?): Boolean
public open fun hashCode(): Int
public open fun compareTo(that: URI): Int
public open fun toString(): String
public open fun toASCIIString(): String
public open fun create(scheme: String, path: String): URI
public companion object {
@JvmStatic
public fun create(str: String): URI
}
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import java.io.Serializable
public expect class URL : Serializable {
public constructor(protocol: String, host: String, port: Int, file: String)
public constructor(protocol: String, host: String, file: String)
public constructor(spec: String)
public constructor(context: URL, spec: String)
//public constructor(context: URL, spec: String, handler: URLStreamHandler)
public open fun getQuery(): String
public open fun getPath(): String
public open fun getUserInfo(): String
public open fun getAuthority(): String
public open fun getPort(): Int
public open fun getDefaultPort(): Int
public open fun getProtocol(): String
public open fun getHost(): String
public open fun getFile(): String
public open fun getRef(): String
public open fun equals(obj: Any?): Boolean
public open fun hashCode(): Int
public open fun sameFile(other: URL): Boolean
public open fun toString(): String
public open fun toExternalForm(): String
public open fun toURI(): URI
public open fun openConnection(): URLConnection
public open fun openConnection(proxy: Proxy): URLConnection
public fun openStream(): java.io.InputStream
public fun getContent(): Any?
//public final fun getContent(classes: Array<Class<?>>): Any?
//public open fun createURLStreamHandler(protocol: String): URLStreamHandler
public open fun hasNext(): Boolean
//public open fun next(): java.net.spi.URLStreamHandlerProvider
//public open fun run(): URLStreamHandler
//public open fun getHandler(u: URL): URLStreamHandler
public companion object {
//@JvmStatic public open fun setURLStreamHandlerFactory(fac: URLStreamHandlerFactory)
}
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"NON_FINAL_MEMBER_IN_OBJECT", "ConvertSecondaryConstructorToPrimary"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.net
import kotlin.jvm.JvmStatic
public expect abstract class URLConnection {
protected constructor(url: URL)
public open fun getContentTypeFor(fileName: String): String
public abstract fun connect()
public open fun setConnectTimeout(timeout: Int)
public open fun getConnectTimeout(): Int
public open fun setReadTimeout(timeout: Int)
public open fun getReadTimeout(): Int
public open fun getURL(): URL
public open fun getContentLength(): Int
public open fun getContentLengthLong(): Long
public open fun getContentType(): String
public open fun getContentEncoding(): String
public open fun getExpiration(): Long
public open fun getDate(): Long
public open fun getLastModified(): Long
public open fun getHeaderField(name: String): String
public open fun getHeaderFields(): Map<String, List<String>>
public open fun getHeaderFieldInt(name: String, Default: Int): Int
public open fun getHeaderFieldLong(name: String, Default: Long): Long
public open fun getHeaderFieldDate(name: String, Default: Long): Long
public open fun getHeaderFieldKey(n: Int): String
public open fun getHeaderField(n: Int): String
public open fun getContent(): Any?
//public open fun getContent(classes: Array<Class<?>>): Any?
//public open fun getPermission(): java.security.Permission
public open fun getInputStream(): java.io.InputStream
public open fun getOutputStream(): java.io.OutputStream
public open fun toString(): String
public open fun setDoInput(doinput: Boolean)
public open fun getDoInput(): Boolean
public open fun setDoOutput(dooutput: Boolean)
public open fun getDoOutput(): Boolean
public open fun setAllowUserInteraction(allowuserinteraction: Boolean)
public open fun getAllowUserInteraction(): Boolean
public open fun setUseCaches(usecaches: Boolean)
public open fun getUseCaches(): Boolean
public open fun setIfModifiedSince(ifmodifiedsince: Long)
public open fun getIfModifiedSince(): Long
public open fun getDefaultUseCaches(): Boolean
public open fun setDefaultUseCaches(defaultusecaches: Boolean)
public open fun setRequestProperty(key: String, value: String)
public open fun addRequestProperty(key: String, value: String)
public open fun getRequestProperty(key: String): String
public open fun getRequestProperties(): Map<String, List<String>>
//public open fun run(): ContentHandler
public open fun getContent(uc: URLConnection): Any?
public companion object {
//@JvmStatic public open fun getFileNameMap(): FileNameMap
//@JvmStatic public open fun setFileNameMap(map: FileNameMap)
@JvmStatic
public open fun setDefaultAllowUserInteraction(defaultallowuserinteraction: Boolean)
@JvmStatic
public open fun getDefaultAllowUserInteraction(): Boolean
@JvmStatic
public open fun setDefaultUseCaches(protocol: String, defaultVal: Boolean)
@JvmStatic
public open fun getDefaultUseCaches(protocol: String): Boolean
@JvmStatic
public open fun setDefaultRequestProperty(key: String, value: String)
@JvmStatic
public open fun getDefaultRequestProperty(key: String): String
//@JvmStatic public open fun setContentHandlerFactory(fac: ContentHandlerFactory)
@JvmStatic
public open fun guessContentTypeFromName(fname: String): String
@JvmStatic
public open fun guessContentTypeFromStream(`is`: java.io.InputStream): String
}
}
\ No newline at end of file
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress("unused", "NO_ACTUAL_FOR_EXPECT", "PackageDirectoryMismatch")
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.nio
import kotlin.jvm.JvmStatic
/**
* A typesafe enumeration for byte orders.
*
* @author Mark Reinhold
* @author JSR-51 Expert Group
* @since 1.4
*/
public expect class ByteOrder {
public companion object {
/**
* Constant denoting big-endian byte order. In this order, the bytes of a
* multibyte value are ordered from most significant to least significant.
*/
@JvmStatic
public val BIG_ENDIAN: ByteOrder
/**
* Constant denoting little-endian byte order. In this order, the bytes of
* a multibyte value are ordered from least significant to most
* significant.
*/
@JvmStatic
public val LITTLE_ENDIAN: ByteOrder
/**
* Retrieves the native byte order of the underlying platform.
*
*
* This method is defined so that performance-sensitive Java code can
* allocate direct buffers with the same byte order as the hardware.
* Native code libraries are often more efficient when such buffers are
* used.
*
* @return The native byte order of the hardware upon which this Java
* virtual machine is running
*/
@JvmStatic
public fun nativeOrder(): ByteOrder
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.nio.file
import java.io.Closeable
public expect abstract class FileSystem : Closeable {
//public abstract fun provider(): java.nio.file.spi.FileSystemProvider
public abstract fun close()
public abstract fun isOpen(): Boolean
public abstract fun isReadOnly(): Boolean
public abstract fun getSeparator(): String
public abstract fun getRootDirectories(): Iterable<Path>
//public abstract fun getFileStores(): Iterable<FileStore>
public abstract fun supportedFileAttributeViews(): Set<String>
public abstract fun getPath(first: String, vararg more: String): Path
//public abstract fun getPathMatcher(syntaxAndPattern: String): PathMatcher
//public abstract fun getUserPrincipalLookupService(): UserPrincipalLookupService
// public abstract fun newWatchService(): WatchService
}
\ No newline at end of file
/*
*
* * Copyright 2020 Mamoe Technologies and contributors.
* *
* * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
* *
* * https://github.com/mamoe/mirai/blob/master/LICENSE
*
*/
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE",
"NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.nio.file
public expect open interface Path : Comparable<Path>, Iterable<Path>, Watchable {
public open fun getFileSystem(): FileSystem
public open fun isAbsolute(): Boolean
public open fun getRoot(): Path
public open fun getFileName(): Path
public open fun getParent(): Path
public open fun getNameCount(): Int
public open fun getName(index: Int): Path
public open fun subpath(beginIndex: Int, endIndex: Int): Path
public open fun startsWith(other: Path): Boolean
public open fun startsWith(other: String): Boolean
public open fun endsWith(other: Path): Boolean
public open fun endsWith(other: String): Boolean
public open fun normalize(): Path
public open fun resolve(other: Path): Path
public open fun resolve(other: String): Path
public open fun resolveSibling(other: Path): Path
public open fun resolveSibling(other: String): Path
public open fun relativize(other: Path): Path
public open fun toUri(): java.net.URI
public open fun toAbsolutePath(): Path
//public open fun toRealPath(vararg options: LinkOption): Path
public open fun toFile(): java.io.File
//public open fun register(watcher: watcher, events: events, WatchEvent.Modifier[0]: new): return
public open fun iterator(): Iterator<Path>
public open fun hasNext(): Boolean
public open fun next(): Path
public open fun compareTo(other: Path): Int
public open fun equals(other: Any?): Boolean
public open fun hashCode(): Int
public open fun toString(): String
public companion object {
//@JvmStatic
public open fun of(first: String, vararg more: String): Path
//@JvmStatic
public open fun of(uri: java.net.URI): Path
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE", "NON_FINAL_MEMBER_IN_OBJECT"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.nio.file
import kotlin.jvm.JvmStatic
public expect final class Paths {
public companion object {
@JvmStatic
public open fun get(first: String, vararg more: String): Path
@JvmStatic
public open fun get(uri: java.net.URI): Path
}
}
\ No newline at end of file
@file:Suppress(
"unused",
"NO_ACTUAL_FOR_EXPECT",
"PackageDirectoryMismatch",
"NON_FINAL_MEMBER_IN_FINAL_CLASS",
"VIRTUAL_MEMBER_HIDDEN",
"RedundantModalityModifier",
"REDUNDANT_MODIFIER_FOR_TARGET",
"REDUNDANT_OPEN_IN_INTERFACE"
)
/**
* Bindings for JDK.
*
* All the sources are copied from OpenJDK. Copyright OpenJDK authors.
*/
package java.nio.file
public expect open interface Watchable {
//public open fun register(watcher: WatchService, vararg events: WatchEvent.Kind<?>): WatchKey
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment