Annotary
Sort

Iterable (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
if an iteration order is specified
Cancel

The default implementation behaves as if:


     for (T t : this)
         action.accept(t);
 
Cancel
The default implementation creates an early-binding spliterator from the iterable's Iterator. The spliterator inherits the fail-fast properties of the iterable's iterator.
Cancel
The spliterator returned by the default implementation has poor splitting capabilities, is unsized, and does not report any spliterator characteristics
Cancel
Implementing classes can nearly always provide a better implementation.
Cancel
Show all 5 highlights
Sort

WritableByteChannel (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
Only one write operation upon a writable channel may be in progress at any given time
Cancel
Whether or not other kinds of I/O operations may proceed concurrently with a write operation depends upon the type of the channel.
Cancel
Unless otherwise specified, a write operation will return only after writing all of the r requested bytes
Cancel
Some types of channels, depending upon their state, may write only some of the bytes or possibly none at all.
Cancel
A socket channel in non-blocking mode, for example, cannot write any more bytes than are free in the socket's output buffer.
Cancel
Show all 5 highlights
Sort

DirectoryStream (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
Cancel
it is not a general-purpose Iterable as it supports only a single Iterator; invoking the iterator method to obtain a second or subsequent iterator throws IllegalStateException.
Cancel
The Iterator does not support the remove operation.
Cancel
hasNext method returns false
Cancel
and subsequent calls to the next method will throw NoSuchElementException.
Cancel
behaves as if the end of stream has been reached.
Cancel
closed
Cancel
not required to be asynchronously closeable
Cancel
If an I/O error is encountered when accessing the directory then it causes the Iterator's hasNext or next methods to throw DirectoryIteratorException with the IOException as the cause
Cancel
no specific orde
Cancel
Some file systems maintain special links to the directory itself and the directory's parent directory. Entries representing these links are not returned by the iterator.
Cancel
does not freeze the directory
Cancel
so it may (or may not) reflect updates
Cancel
weakly consistent
Cancel
Show all 14 highlights
Sort

Files (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
In most cases, the methods defined here will delegate to the associated file system provider to perform the file operations.
Cancel
o support
Cancel
The stream will be safe for access by multiple concurrent threads
Cancel
not be buffered
Cancel
not required to support the mark or reset methods
Cancel
Whether the returned stream is asynchronously closeable and/or interruptible is highly file system provider specific
Cancel
not be buffered
Cancel
Opens or creates a file
Cancel
safe for access by multiple concurrent threads
Cancel
asynchronously closeable and/or interruptible is highly file system provider specific
Cancel
CREATE, TRUNCATE_EXISTING, and WRITE options are present
Cancel
If neither option (or the APPEND option) is present then the file is opened for reading
Cancel
Opens or creates a file, returning a seekable byte channel to access the file
Cancel
Whether the advancement of the position and the writing of the data are done in a single atomic operation is system-dependent and therefore unspecified
Cancel
This option may not be used in conjunction with the READ or TRUNCATE_EXISTING options.
MAY
Cancel
This option is ignored when the file is opened only for reading.
Cancel
When creating a file the check for the existence of the file and the creation of the file if it does not exist is atomic
Cancel
In the case of the default provider, the returned seekable byte channel is a FileChannel.
Cancel
FileAlreadyExistsException
Cancel
Show all 19 highlights
Sort

WatchEvent.Modifier (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
An event modifier that qualifies how a Watchable is registered with a WatchService.

This release does not define any standard modifiers.

Cancel
Sort

UserDefinedFileAttributeView (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
A file attribute view that provides a view of a file's user-defined attributes, sometimes known as extended attributes
Cancel
Sort

FileStoreAttributeView (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
read-only or updatable view of the attributes of a FileStore.
Cancel
Sort

AclFileAttributeView (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
A file attribute view that supports reading or updating a file's Access Control Lists (ACL) or file owner attributes.
Cancel
ACLs are used to specify access rights to file system objects
Cancel
Show all 3 highlights
Sort

DosFileAttributes (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
prevent files from being deleted or updated
Cancel
This attribute is typically used by backup programs.
Cancel
file is a component of the operating system.
Cancel
Show all 3 highlights
Sort

DosFileAttributeView (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
Name Type
readonly Boolean
hidden Boolean
system Boolean
archive Boolean
Cancel
a view of the legacy "DOS" file attributes
Cancel
File Allocation Table (FAT) format commonly used in consumer devices.
Cancel
Attribute views of this type have the name "dos".
Cancel
SecurityException - In the case of the default provider, a security manager is installed, its checkRead method is invoked to check read access to the file
Cancel

It is implementation specific if the attribute can be updated as an atomic operation with respect to other file system operations. An implementation may, for example, require to read the existing value of the DOS attribute in order to update this attribute.

Parameters:
Cancel
Cancel
Cancel
Show all 8 highlights
Sort

FileOwnerAttributeView (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
reading or updating the owner of a file
Cancel
Sort

Group (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
represent a group of principals
Cancel
A principal represents an entity such as an individual user or a company
Cancel
Show all 2 highlights
Sort

IdentityScope (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
This class represents a scope for identities. It is an Identity itself, and therefore has a name and can have a scope. It can also optionally have a public key and associated certificates.
Cancel
Note that it is possible, and in fact expected, that different types of identity scopes will apply different policies for their various operations on the various types of Identities.
Cancel
There is a one-to-one mapping between keys and identities, and there can only be one copy of one key per scope. For example, suppose Acme Software, Inc is a software publisher known to a user. Suppose it is an Identity, that is, it has a public key, and a set of associated certificates. It is named in the scope using the name "Acme Software". No other named Identity in the scope has the same public key. Of course, none has the same name as well.
Cancel
Show all 3 highlights
Sort

Identity (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
whose identities can be authenticated using their public keys
Cancel
have a name and a public key
Cancel
Names are immutabl
Cancel
Identities may also be scoped. That is, if an Identity is specified to have a particular scope, then the name and public key of the Identity are unique within that scope.
Cancel
set of certificates (all certifying its own public key
Cancel
The Principal names specified in these certificates need not be the same, only the key.
Cancel
An Identity can be subclassed, to include postal and email addresses, telephone numbers, images of faces and logos, and so on.
Cancel
Show all 7 highlights
Sort

Subject (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
A Subject represents a grouping of related information for a single entity, such as a person. Such information includes the Subject's identities as well as its security-related attributes (passwords and cryptographic keys, for example).
Cancel
example, a Subject that happens to be a person, Alice, might have two Principals: one which binds "Alice Bar", the name on her driver license, to the Subject, and another which binds, "999-99-9999", the number on her student identification card, to the Subject. Both Principals refer to the same Subject even though each has a different name.
Cancel
Each identity is represented as a Principal within the Subject
Cancel
A Subject may also own security-related attributes, which are referred to as credentials
Cancel
Credentials intended to be shared, such as public key certificates or Kerberos server tickets are stored within a public credential Set
Cancel
Sensitive credentials that require special protection, such as private cryptographic keys, are stored within a private credential Set
Cancel
This Subject class implements Serializable. While the Principals associated with the Subject are serialized, the credentials associated with the Subject are not.
Cancel
Show all 7 highlights
Sort

FileTime (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
Conversion from a coarser granularity that would numerically overflow saturate to Long.MIN_VALUE if negative or Long.MAX_VALUE if positive.
Cancel
FileTime can store points on the time-line further in the future and further in the past than Instant. Conversion from such further time points saturates to Instant.MIN if earlier than Instant.MIN or Instant.MAX if later than Instant.MAX.
Cancel
The hash code is based upon the value represented
Cancel
The string is returned in the ISO 8601 format:
     YYYY-MM-DDThh:mm:ss[.s+]Z
Cancel
Where used to represent extreme values, where the year is less than "0001" or greater than "9999" then this method deviates from ISO 8601 in the same manner as the XML Schema language. That is, the year may be expanded to more than four digits and may be negative-signed. If more than four digits then leading zeros are not present
Cancel
The year before "0001" is "-0001".
Cancel
Show all 6 highlights
Sort

BasicFileAttributeView (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
A file attribute view that provides a view of a basic set of file attributes common to many file systems.
Cancel
Sort

what is type safe in java - Google Search

www.google.co.in
harsha vardhan harsha vardhan
3 months ago
Type-Safe is code that accesses only the memory locations it is authorized to access, and only in well-defined, allowable ways. Type-safe code cannot perform an operation on an object that is invalid for that object.
Cancel
Sort

FileStore (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
Storage for files. A FileStore represents a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage
Cancel
It will typically be the name of the storage pool or volume.
Cancel
It may indicate, for example, the format used or if the file store is local or remote.
Cancel
Invoking this method to test if the file store supports BasicFileAttributeView will always return true.
Cancel
In the case of the default provider, this method cannot guarantee to give the correct result when the file store is not a local storage device. The reasons for this are implementation specific and therefore unspecified.
Cancel
The type parameter is the type of the attribute view required and the method returns an instance of that type if supported.
Cancel
view-name:attribute-name
Cancel
ZFS compression
Cancel
Show all 8 highlights
Sort

FileVisitResult (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
The result type of a FileVisitor.
Cancel
then the entries in the directory should also be visited.
Cancel
Continue without visiting the entries in this directory. This result is only meaningful when returned from the preVisitDirectory method; otherwise this result type is the same as returning CONTINUE.
Cancel
Continue without visiting the siblings of this file or directory. If returned from the preVisitDirectory method then the entries in the directory are also skipped and the postVisitDirectory method is not invoked
Cancel
Show all 4 highlights
Sort

What is a "surrogate pair" in Java?

stackoverflow.com
harsha vardhan harsha vardhan
3 months ago
assigns 1,024 values to 16-bit high surrogates(in the range U+D800 to U+DBFF) and another 1,024 values to 16-bit low surrogates(in the range U+DC00 to U+DFFF).
1011--b 1101-- d
110110
110110
110111
110111
Cancel
Sort

Object Graph in Java Serialization - GeeksforGeeks

www.geeksforgeeks.org
harsha vardhan harsha vardhan
3 months ago
An Object Graph is the set of objects which will be serialized automatically, if the object which contains reference to them is serialized.
Cancel
In object graph every object should be serializable. If at-least one object is not serializable then we will get runtime execution saying NonSerializableExecution
Cancel
Show all 2 highlights
Sort

ObjectInput (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
The class that implements this interface defines where the object is "read" from.
Cancel
ClassNotFoundException - If the class of a serialized object cannot be found.
Cancel
Show all 2 highlights
Sort

DataInput (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
Reads one input byte and returns true if that byte is nonzero, false if that byte is zero.
Cancel
EOFException - if this stream reaches the end before reading all the bytes.
Cancel
NullPointerException is thrown
Cancel
IndexOutOfBoundsException is thrown.
Cancel
Show all 4 highlights
Sort

DataInputStream (Java Platform SE 8 )

docs.oracle.com
harsha vardhan harsha vardhan
3 months ago
corresponds to write bytes
Cancel
preferred way to read lines of text is via the BufferedReader.readLine() method
Cancel
readUnsignedByte()
See the general contract of the readUnsignedByte method of DataInput.
int readUnsignedShort()
See the general contract
no write unsigned byte or short in dtaopstrm
Cancel
Show all 3 highlights
Sort

Surrogates and Supplementary Characters (Windows)

msdn.microsoft.com
harsha vardhan harsha vardhan
3 months ago
The Unicode standard has established 16 additional "planes" of characters, each the same size as the BMP.
Cancel
"surrogate" is a UTF-16 code value
Cancel
"surrogate pair" is required to represent a single supplementary character.
Cancel
The first (high) surrogate is a 16-bit code value in the range U+D800 to U+DBFF.
Cancel
) surrogate is a 16-bit code value in the range U+DC00 to U+DFFF
Cancel
Show all 5 highlights
Loading...