In this paper, we show that by integrating out the position-dependent electric field and incorporating proper boundary conditions, a Boltzmann equation can describe electron transport properties of a finite-size conductor, continuously from the diffusive to ballistic regimes.