*/
interface Streamable extends FrameworkInterface {
/**
- * "Getter" for seek position
+ * Determines seek position
*
* @return $seekPosition Current seek position
*/
- function getSeekPosition ();
+ function determineSeekPosition ();
/**
* Seek to given offset (default) or other possibilities as fseek() gives.
* @return $tatus Status of this operation
*/
function seek ($seekPosition, $whence = SEEK_SET);
-
- /**
- * "Getter" for seek position
- *
- * @return $seekPosition Seek position
- */
- function getSeekPosition ();
}
// [EOF]
}
/**
- * "Getter" for seek position
+ * Determines seek position
*
* @return $seekPosition Current seek position
* @throws UnsupportedOperationException If this method is called
*/
- public function getSeekPosition () {
+ public function determineSeekPosition () {
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}
}
/**
- * "Getter" for seek position
+ * Determines for seek position
*
* @return $seekPosition Current seek position
* @throws UnsupportedOperationException If this method is called
*/
- public function getSeekPosition () {
+ public function determineSeekPosition () {
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}
}
/**
- * "Getter" for seek position
+ * Determines seek position
*
* @return $seekPosition Current seek position
* @throws UnsupportedOperationException If this method is called
*/
- public function getSeekPosition () {
+ public function determineSeekPosition () {
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}
}
/**
- * "Getter" for seek position
+ * Determines seek position
*
* @return $seekPosition Current seek position
*/
- public final function getSeekPosition () {
+ public final function determineSeekPosition () {
return ftell($this->getPointer());
}
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
// Get current seek position
- $seekPosition = $this->getSeekPosition();
+ $seekPosition = $this->determineSeekPosition();
// Seek to end
$seekStatus = $this->seek(0, SEEK_END);
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] seekStatus=%d', __METHOD__, __LINE__, $seekStatus));
// Get position again (which is the end of the file)
- $size = $this->getSeekPosition();
+ $size = $this->determineSeekPosition();
// Reset seek position to old
$this->seek($seekPosition);
}
/**
- * "Getter" for seek position
+ * Determines seek position
*
* @return $seekPosition Current seek position
* @todo 0% done
*/
- public function getSeekPosition () {
+ public function determineSeekPosition () {
$this->partialStub();
}
*/
public function key () {
// Return it
- return $this->getPointerInstance()->getSeekPosition();
+ return $this->getPointerInstance()->determineSeekPosition();
}
/**
}
/**
- * "Getter" for seek position
+ * Determines seek position
*
* @return $seekPosition Current seek position
* @todo 0% done
*/
- public function getSeekPosition () {
+ public function determineSeekPosition () {
$this->partialStub();
}