final class AbstractFileReader extends DataReader
This class reads files byte per byte. Only used by ClassFileParser
- Source
- AbstractFileReader.scala
- Version
1.0, 23/03/2004
- Alphabetic
- By Inheritance
- AbstractFileReader
- DataReader
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AbstractFileReader(buf: Array[Byte])
-
new
AbstractFileReader(file: AbstractFile)
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.13) Use other constructor
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to any2stringadd[AbstractFileReader] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (AbstractFileReader, B)
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to ArrowAssoc[AbstractFileReader] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
var
bp: Int
the current input pointer
the current input pointer
- Definition Classes
- AbstractFileReader → DataReader
-
val
buf: Array[Byte]
- Definition Classes
- AbstractFileReader → DataReader
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
ensuring(cond: (AbstractFileReader) ⇒ Boolean, msg: ⇒ Any): AbstractFileReader
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to Ensuring[AbstractFileReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (AbstractFileReader) ⇒ Boolean): AbstractFileReader
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to Ensuring[AbstractFileReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): AbstractFileReader
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to Ensuring[AbstractFileReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): AbstractFileReader
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to Ensuring[AbstractFileReader] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getByte(mybp: Int): Byte
extract a byte at position bp from buf
extract a byte at position bp from buf
- Definition Classes
- AbstractFileReader → DataReader
-
def
getBytes(mybp: Int, bytes: Array[Byte]): Unit
- Definition Classes
- AbstractFileReader → DataReader
-
def
getChar(mybp: Int): Char
extract a character at position bp from buf
extract a character at position bp from buf
- Definition Classes
- AbstractFileReader → DataReader
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDouble(mybp: Int): Double
extract a double at position bp from buf
extract a double at position bp from buf
- Definition Classes
- AbstractFileReader → DataReader
-
def
getFloat(mybp: Int): Float
extract a float at position bp from buf
extract a float at position bp from buf
- Definition Classes
- AbstractFileReader → DataReader
-
def
getInt(mybp: Int): Int
extract an integer at position bp from buf
extract an integer at position bp from buf
- Definition Classes
- AbstractFileReader → DataReader
-
def
getLong(mybp: Int): Long
extract a long integer at position bp from buf
extract a long integer at position bp from buf
- Definition Classes
- AbstractFileReader → DataReader
-
def
getUTF(mybp: Int, len: Int): String
- Definition Classes
- AbstractFileReader → DataReader
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nextByte: Byte
read a byte
read a byte
- Definition Classes
- AbstractFileReader → DataReader
- Annotations
- @throws( classOf[IndexOutOfBoundsException] )
-
def
nextBytes(len: Int): Array[Byte]
read some bytes
read some bytes
- Definition Classes
- AbstractFileReader → DataReader
-
def
nextChar: Char
read a character
read a character
- Definition Classes
- AbstractFileReader → DataReader
-
def
nextInt: Int
read an integer
read an integer
- Definition Classes
- AbstractFileReader → DataReader
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
skip(n: Int): Unit
skip next 'n' bytes
skip next 'n' bytes
- Definition Classes
- AbstractFileReader → DataReader
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (AbstractFileReader, B)
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to ArrowAssoc[AbstractFileReader] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AbstractFileReader to StringFormat[AbstractFileReader] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.