\hypertarget{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file}{}\section{plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File Class Reference}
\label{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file}\index{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}}


Inheritance diagram for plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File\+:
% FIG 0


Collaboration diagram for plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File\+:
% FIG 1
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
def \mbox{\hyperlink{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_abdd9e46cccb53fe1cac99b2d1e16864a}{\+\_\+\+\_\+init\+\_\+\+\_\+}} (self, resolver\+\_\+context)
\item 
def \mbox{\hyperlink{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_af841a688941beebdff671937a7760dff}{read}} (self, size=None)
\item 
def \mbox{\hyperlink{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_a87d1095c082574a6685a3876add4ed8b}{seek}} (self, offset, whence=os.\+S\+E\+E\+K\+\_\+\+S\+ET)
\item 
def \mbox{\hyperlink{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_a834c1fd58e724a97a93a0ee1965906d7}{get\+\_\+offset}} (self)
\item 
def \mbox{\hyperlink{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_adadf66a08fee55f3fe52a0f42e4176d0}{get\+\_\+size}} (self)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyVerb}File-like object for HDFS.\end{DoxyVerb}
 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_abdd9e46cccb53fe1cac99b2d1e16864a}\label{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_abdd9e46cccb53fe1cac99b2d1e16864a}} 
\index{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}!\_\_init\_\_@{\_\_init\_\_}}
\index{\_\_init\_\_@{\_\_init\_\_}!plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}}
\subsubsection{\texorpdfstring{\_\_init\_\_()}{\_\_init\_\_()}}
{\footnotesize\ttfamily def plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File.\+\_\+\+\_\+init\+\_\+\+\_\+ (\begin{DoxyParamCaption}\item[{}]{self,  }\item[{}]{resolver\+\_\+context }\end{DoxyParamCaption})}

\begin{DoxyVerb}Initializes a file-like object.
:param resolver_context: resolver context
\end{DoxyVerb}
 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_a834c1fd58e724a97a93a0ee1965906d7}\label{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_a834c1fd58e724a97a93a0ee1965906d7}} 
\index{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}!get\_offset@{get\_offset}}
\index{get\_offset@{get\_offset}!plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}}
\subsubsection{\texorpdfstring{get\_offset()}{get\_offset()}}
{\footnotesize\ttfamily def plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File.\+get\+\_\+offset (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}

\begin{DoxyVerb}Retrieves the current offset into the file-like object.
:return: current offset into the file-like object
:raises: IOError: if the file-like object has not been opened
\end{DoxyVerb}
 \mbox{\Hypertarget{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_adadf66a08fee55f3fe52a0f42e4176d0}\label{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_adadf66a08fee55f3fe52a0f42e4176d0}} 
\index{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}!get\_size@{get\_size}}
\index{get\_size@{get\_size}!plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}}
\subsubsection{\texorpdfstring{get\_size()}{get\_size()}}
{\footnotesize\ttfamily def plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File.\+get\+\_\+size (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}

\begin{DoxyVerb}Retrieves the size of the file-like object.
:return: size of the file-like object data
:raises IOError: if the file-like object has not been opened
\end{DoxyVerb}
 \mbox{\Hypertarget{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_af841a688941beebdff671937a7760dff}\label{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_af841a688941beebdff671937a7760dff}} 
\index{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}!read@{read}}
\index{read@{read}!plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}}
\subsubsection{\texorpdfstring{read()}{read()}}
{\footnotesize\ttfamily def plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File.\+read (\begin{DoxyParamCaption}\item[{}]{self,  }\item[{}]{size = {\ttfamily None} }\end{DoxyParamCaption})}

\begin{DoxyVerb}Reads a byte string from the file-like object at the current offset.
The function will read a byte string of the specified size or all of the remaining data
if no size was specified.
:param size: number of bytes to read, where None is all remaining data.
:return: data read
:raises IOError: if the read failed
\end{DoxyVerb}
 \mbox{\Hypertarget{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_a87d1095c082574a6685a3876add4ed8b}\label{classplaso_1_1tarzan_1_1dfvfs2_1_1hdfs__file__io_1_1_h_d_f_s_file_a87d1095c082574a6685a3876add4ed8b}} 
\index{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}!seek@{seek}}
\index{seek@{seek}!plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile@{plaso.tarzan.dfvfs2.hdfs\_file\_io.HDFSFile}}
\subsubsection{\texorpdfstring{seek()}{seek()}}
{\footnotesize\ttfamily def plaso.\+tarzan.\+dfvfs2.\+hdfs\+\_\+file\+\_\+io.\+H\+D\+F\+S\+File.\+seek (\begin{DoxyParamCaption}\item[{}]{self,  }\item[{}]{offset,  }\item[{}]{whence = {\ttfamily os.SEEK\+\_\+SET} }\end{DoxyParamCaption})}

\begin{DoxyVerb}Seeks to an offset within the file-like object.
:param offset: offset to seek to
:param whence: value that indicates whether offset is an absolute or relative position within the file
:raises IOError: if the seek failed
\end{DoxyVerb}
 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/home/rychly/repos/pyspark-\/plaso/src/plaso/tarzan/dfvfs2/\mbox{\hyperlink{hdfs__file__io_8py}{hdfs\+\_\+file\+\_\+io.\+py}}\end{DoxyCompactItemize}
